From: Kaj-Michael Lang Date: Fri, 11 Apr 2008 13:09:47 +0000 (+0300) Subject: Set extension events as soon as possible X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb6f31bc87b4ab8b09c0d2987e5a7b82d61422db;p=mapper Set extension events as soon as possible --- 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);