From 78bcb6d3cbedb376a6f206a1e8153546374d53ab Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 24 Jan 2009 15:22:45 +0100 Subject: [PATCH] Monitor accelerators only after creating the first browser --- midori/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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", -- 2.39.5