[evolution/rendering-cleanup: 69/97] e-map: Query adjustment for size, not pixbuf
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/rendering-cleanup: 69/97] e-map: Query adjustment for size, not pixbuf
- Date: Thu, 21 Oct 2010 09:49:50 +0000 (UTC)
commit 0ad2f2076a5a5fb976e54376dc7602a14fa54f86
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 4 18:22:46 2010 +0200
e-map: Query adjustment for size, not pixbuf
widgets/misc/e-map.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index 0af34f9..eb73174 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]