aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-10-30 21:51:43 +0800
committerChristian Persch <chpe@src.gnome.org>2005-10-30 21:51:43 +0800
commitba4c78ce66c51332b9cdf4bdc7e9c9bf363c7cfc (patch)
treef187d98a7ed3958d277be0ff5979ac75ac51c175 /lib
parentbc541864b12e85185251765c99a103718b92b994 (diff)
downloadgsoc2013-epiphany-ba4c78ce66c51332b9cdf4bdc7e9c9bf363c7cfc.tar
gsoc2013-epiphany-ba4c78ce66c51332b9cdf4bdc7e9c9bf363c7cfc.tar.gz
gsoc2013-epiphany-ba4c78ce66c51332b9cdf4bdc7e9c9bf363c7cfc.tar.bz2
gsoc2013-epiphany-ba4c78ce66c51332b9cdf4bdc7e9c9bf363c7cfc.tar.lz
gsoc2013-epiphany-ba4c78ce66c51332b9cdf4bdc7e9c9bf363c7cfc.tar.xz
gsoc2013-epiphany-ba4c78ce66c51332b9cdf4bdc7e9c9bf363c7cfc.tar.zst
gsoc2013-epiphany-ba4c78ce66c51332b9cdf4bdc7e9c9bf363c7cfc.zip
Set the action's accel group. Fixes bug #319536.
2005-10-30 Christian Persch <chpe@cvs.gnome.org> * lib/egg/egg-editable-toolbar.c: (create_item_from_action): Set the action's accel group. Fixes bug #319536.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c8
1 files changed, 7 insertions, 1 deletions
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);
}