[Xfce4-commits] <midori:master> Connect accelerators of implicitly created panel actions
Christian Dywan
noreply at xfce.org
Fri Jan 8 00:18:05 CET 2010
Updating branch refs/heads/master
to f4c7df59b44bda7eeb3c1c470fdc2d1e6baced81 (commit)
from 139132afbdb2a1c69625e97eb3b5ca9584a03d0a (commit)
commit f4c7df59b44bda7eeb3c1c470fdc2d1e6baced81
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Jan 7 21:52:06 2010 +0100
Connect accelerators of implicitly created panel actions
midori/midori-panel.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/midori/midori-panel.c b/midori/midori-panel.c
index 5f2c972..b38166a 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 (
More information about the Xfce4-commits
mailing list