From eb6f31bc87b4ab8b09c0d2987e5a7b82d61422db Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 11 Apr 2008 16:09:47 +0300 Subject: [PATCH] Set extension events as soon as possible --- src/map.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/map.c b/src/map.c index eea3afc..b5e85ce 100644 --- 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); -- 2.39.5