From f4c7df59b44bda7eeb3c1c470fdc2d1e6baced81 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 7 Jan 2010 21:52:06 +0100 Subject: [PATCH] Connect accelerators of implicitly created panel actions --- midori/midori-panel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/midori/midori-panel.c b/midori/midori-panel.c index 5f2c9720..b38166a9 100644 --- a/midori/midori-panel.c +++ b/midori/midori-panel.c @@ -853,13 +853,12 @@ midori_panel_append_page (MidoriPanel* panel, G_CALLBACK (midori_panel_action_activate_cb), panel); if (panel->action_group) { - /* FIXME: For some reason the accelerator only works if a menuitem - is created, but not before that. */ GtkWidget* toplevel = gtk_widget_get_toplevel (GTK_WIDGET (panel)); GSList* groups = gtk_accel_groups_from_object (G_OBJECT (toplevel)); gtk_action_set_accel_group (action, g_slist_nth_data (groups, 0)); gtk_action_group_add_action_with_accel (panel->action_group, action, NULL); + gtk_action_connect_accelerator (action); } if (n > 0) g_object_set (action, "group", g_object_get_data ( -- 2.39.5