From ba4c78ce66c51332b9cdf4bdc7e9c9bf363c7cfc Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 30 Oct 2005 13:51:43 +0000 Subject: Set the action's accel group. Fixes bug #319536. 2005-10-30 Christian Persch * lib/egg/egg-editable-toolbar.c: (create_item_from_action): Set the action's accel group. Fixes bug #319536. --- lib/egg/egg-editable-toolbar.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/egg') diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c index 87b26b3bd..4f55bd3b0 100755 --- a/lib/egg/egg-editable-toolbar.c +++ b/lib/egg/egg-editable-toolbar.c @@ -689,7 +689,13 @@ create_item_from_action (EggEditableToolbar *etoolbar, GtkAction *action = find_action (etoolbar, name); g_return_val_if_fail (action != NULL, NULL); item = GTK_TOOL_ITEM (gtk_action_create_tool_item (action)); - + + /* Normally done on-demand by the GtkUIManager, but no + * such demand may have been made yet, so do it ourselves. + */ + gtk_action_set_accel_group + (action, gtk_ui_manager_get_accel_group(etoolbar->priv->manager)); + g_signal_connect_object (action, "notify::sensitive", G_CALLBACK (action_sensitive_cb), item, 0); } -- cgit v1.2.3