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.
This commit is contained in:
Matthew Barnes
2009-09-19 14:39:04 -04:00
parent 9ed93049d1
commit 0585b94eb2

View File

@ -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[] =