aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-20 02:39:04 +0800
committerYan Li <yanli@infradead.org>2009-09-28 10:47:05 +0800
commitc5aea00be3d3fc39ae8c042cf0bb9421f1bcacbf (patch)
treed3b5d0da995e6adfee3553f3c4503569aab4841a
parent95f768c36c23d14e3a445e4d854149dc0ae54902 (diff)
downloadgsoc2013-evolution-c5aea00be3d3fc39ae8c042cf0bb9421f1bcacbf.tar
gsoc2013-evolution-c5aea00be3d3fc39ae8c042cf0bb9421f1bcacbf.tar.gz
gsoc2013-evolution-c5aea00be3d3fc39ae8c042cf0bb9421f1bcacbf.tar.bz2
gsoc2013-evolution-c5aea00be3d3fc39ae8c042cf0bb9421f1bcacbf.tar.lz
gsoc2013-evolution-c5aea00be3d3fc39ae8c042cf0bb9421f1bcacbf.tar.xz
gsoc2013-evolution-c5aea00be3d3fc39ae8c042cf0bb9421f1bcacbf.tar.zst
gsoc2013-evolution-c5aea00be3d3fc39ae8c042cf0bb9421f1bcacbf.zip
Disable gdk_event_get_graphics_expose() call in EMap.
The function is deprecated in GTK+ now. Looks like it was just an optimization anyway -- the map seems to work fine without it -- but I left the logic intact in case I'm wrong. (cherry picked from commit 0585b94eb27d02cf5cb0da87ee3bab85e2de6cbc)
-rw-r--r--widgets/misc/e-map.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index d9114a5e82..26640cf121 100644
--- a/widgets/misc/e-map.c
+++ b/widgets/misc/e-map.c
@@ -1176,7 +1176,9 @@ scroll_to (EMap *view, gint x, gint y)
gint width, height;
gint src_x, src_y;
gint dest_x, dest_y;
+#if 0 /* see comment below */
GdkEvent *event;
+#endif
priv = view->priv;
@@ -1252,6 +1254,11 @@ scroll_to (EMap *view, gint x, gint y)
/* Process graphics exposures */
+ /* XXX gdk_event_get_graphics_expose() is deprecated now.
+ * The map widget seems to work fine without this logic
+ * (I think it was just an optimization) but leaving it
+ * intact in case I'm wrong and we need to rewrite it. */
+#if 0
while ((event = gdk_event_get_graphics_expose (window)) != NULL)
{
gtk_widget_event (GTK_WIDGET (view), event);
@@ -1264,6 +1271,7 @@ scroll_to (EMap *view, gint x, gint y)
gdk_event_free (event);
}
+#endif
}
static gint divide_seq[] =