[gnome-system-tools] Disable gdk_event_get_graphics_expose() call in EMap.
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Disable gdk_event_get_graphics_expose() call in EMap.
- Date: Sat, 7 Nov 2009 20:25:16 +0000 (UTC)
commit e1938f9c26e853bc7bf8853f7a290f5726b7befd
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sat Nov 7 20:13:47 2009 +0100
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.
Patch taken from Evolution, written by Matthew Barnes.
src/time/e-map/e-map.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/time/e-map/e-map.c b/src/time/e-map/e-map.c
index 702e562..2a6315b 100644
--- a/src/time/e-map/e-map.c
+++ b/src/time/e-map/e-map.c
@@ -1274,7 +1274,9 @@ scroll_to (EMap *view, int x, int y)
int width, height;
int src_x, src_y;
int dest_x, dest_y;
+#if 0 /* see comment below */
GdkEvent *event;
+#endif
priv = view->priv;
@@ -1350,6 +1352,11 @@ scroll_to (EMap *view, int x, int 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);
@@ -1362,6 +1369,7 @@ scroll_to (EMap *view, int x, int y)
gdk_event_free (event);
}
+#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]