diff options
-rw-r--r-- | src/ephy-toolbar.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c index c67076dfb..5879c082b 100644 --- a/src/ephy-toolbar.c +++ b/src/ephy-toolbar.c @@ -331,9 +331,13 @@ ephy_toolbar_set_window (EphyToolbar *toolbar, "stock_id", STOCK_NEW_TAB, "tooltip", _("Open a new tab"), NULL); - g_signal_connect_swapped (action, "open-link", - G_CALLBACK (ephy_link_open), toolbar); + + if (ephy_embed_shell_get_mode (embed_shell) != EPHY_EMBED_SHELL_MODE_APPLICATION) + g_signal_connect_swapped (action, "open-link", + G_CALLBACK (ephy_link_open), toolbar); + gtk_action_group_add_action_with_accel (priv->action_group, action, "<control>T"); + g_object_unref (action); action = g_object_new (EPHY_TYPE_HOME_ACTION, @@ -342,9 +346,12 @@ ephy_toolbar_set_window (EphyToolbar *toolbar, "stock_id", STOCK_NEW_WINDOW, "tooltip", _("Open a new window"), NULL); - g_signal_connect_swapped (action, "open-link", - G_CALLBACK (ephy_link_open), toolbar); + if (ephy_embed_shell_get_mode (embed_shell) != EPHY_EMBED_SHELL_MODE_APPLICATION) + g_signal_connect_swapped (action, "open-link", + G_CALLBACK (ephy_link_open), toolbar); + gtk_action_group_add_action_with_accel (priv->action_group, action, "<control>N"); + g_object_unref (action); } |