aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tabs-menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-tabs-menu.c')
-rw-r--r--src/ephy-tabs-menu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c
index df6984627..1ab5d1c1a 100644
--- a/src/ephy-tabs-menu.c
+++ b/src/ephy-tabs-menu.c
@@ -88,10 +88,16 @@ static void
tab_added_cb (EphyNotebook *notebook, EphyTab *tab, EphyTabsMenu *menu)
{
GtkAction *action;
+ char accel_path[40];
g_return_if_fail (EPHY_IS_TAB (tab));
action = GTK_ACTION (ephy_tab_get_action (tab));
+
+ g_snprintf (accel_path, sizeof (accel_path),
+ "<Actions>/TabsActions/%s", gtk_action_get_name (action));
+ gtk_action_set_accel_path (action, accel_path);
+
gtk_action_group_add_action (menu->priv->action_group, action);
ephy_tabs_menu_update (menu);