From 97739da7ca7873a87d473d07db1ce5cfc297716f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 4 Oct 2010 18:22:46 +0200 Subject: e-map: Query adjustment for size, not pixbuf --- widgets/misc/e-map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c index 0af34f972c..eb73174f1c 100644 --- a/widgets/misc/e-map.c +++ b/widgets/misc/e-map.c @@ -42,8 +42,8 @@ /* */ -#define E_MAP_GET_WIDTH(map) gdk_pixbuf_get_width(((EMapPrivate *) E_MAP(map)->priv)->map_render_pixbuf) -#define E_MAP_GET_HEIGHT(map) gdk_pixbuf_get_height(((EMapPrivate *) E_MAP(map)->priv)->map_render_pixbuf) +#define E_MAP_GET_WIDTH(map) gtk_adjustment_get_upper((map)->priv->hadj) +#define E_MAP_GET_HEIGHT(map) gtk_adjustment_get_upper((map)->priv->vadj) /* Zoom state - keeps track of animation hacks */ -- cgit v1.2.3