From: Christian Dywan Date: Sat, 24 Jan 2009 14:22:45 +0000 (+0100) Subject: Monitor accelerators only after creating the first browser X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78bcb6d3cbedb376a6f206a1e8153546374d53ab;p=midori Monitor accelerators only after creating the first browser --- diff --git a/midori/main.c b/midori/main.c index 6d0fe3b1..4be09b13 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1877,6 +1877,9 @@ midori_load_session (gpointer data) midori_app_add_browser (app, browser); gtk_widget_show (GTK_WIDGET (browser)); + g_signal_connect_after (gtk_accel_map_get (), "changed", + G_CALLBACK (accel_map_changed_cb), NULL); + if (katze_array_is_empty (_session)) { MidoriWebSettings* settings = katze_object_get_object (app, "settings"); @@ -2277,8 +2280,6 @@ main (int argc, g_signal_connect_after (settings, "notify", G_CALLBACK (settings_notify_cb), NULL); - g_signal_connect_after (gtk_accel_map_get (), "changed", - G_CALLBACK (accel_map_changed_cb), NULL); g_signal_connect_after (search_engines, "add-item", G_CALLBACK (midori_search_engines_add_item_cb), NULL); g_signal_connect_after (search_engines, "remove-item",