]> err.no Git - mapper/commitdiff
Set extension events as soon as possible
authorKaj-Michael Lang <milang@tal.org>
Fri, 11 Apr 2008 13:09:47 +0000 (16:09 +0300)
committerKaj-Michael Lang <milang@tal.org>
Fri, 11 Apr 2008 13:09:47 +0000 (16:09 +0300)
src/map.c

index eea3afcae060e6f0227223f229b9a91caccc83c2..b5e85ce684ffc447f32625c445559ad321ffab6e 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -173,7 +173,8 @@ map_widget=gtk_drawing_area_new();
 map_timer=g_timer_new();
 
 map_ic=image_cache_new(MAP_CACHE_MAX);
-g_debug("World size: %u", WORLD_SIZE_UNITS);
+
+gtk_widget_set_extension_events(GTK_WIDGET(map_widget), GDK_EXTENSION_EVENTS_ALL);
 
 #ifdef WITH_GL
 map_gl_config=gdk_gl_config_new_by_mode(GDK_GL_MODE_RGB | GDK_GL_MODE_DEPTH);
@@ -234,9 +235,6 @@ g_signal_connect(G_OBJECT(map_widget), "scroll_event",  G_CALLBACK(map_cb_scroll
 
 gtk_widget_add_events(map_widget, GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
        | GDK_LEAVE_NOTIFY_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK);
-#ifdef WITH_HILDON
-gtk_widget_set_extension_events(GTK_WIDGET(map_widget), GDK_EXTENSION_EVENTS_ALL);
-#endif
 
 map_poi_init(map_widget);