diff options
author | Jean-François Rameau <jframeau@cvs.gnome.org> | 2006-09-25 03:59:37 +0800 |
---|---|---|
committer | Jean-François Rameau <jframeau@src.gnome.org> | 2006-09-25 03:59:37 +0800 |
commit | 575feabefc7e27e9e0b8cd5e7aac4d54cd69a6a4 (patch) | |
tree | e9287933d2908e0521b9df7119c32370dbe9c3ff /src/ephy-toolbar.c | |
parent | 93435055701bffb38039ea16069a796aca256246 (diff) | |
download | gsoc2013-epiphany-575feabefc7e27e9e0b8cd5e7aac4d54cd69a6a4.tar gsoc2013-epiphany-575feabefc7e27e9e0b8cd5e7aac4d54cd69a6a4.tar.gz gsoc2013-epiphany-575feabefc7e27e9e0b8cd5e7aac4d54cd69a6a4.tar.bz2 gsoc2013-epiphany-575feabefc7e27e9e0b8cd5e7aac4d54cd69a6a4.tar.lz gsoc2013-epiphany-575feabefc7e27e9e0b8cd5e7aac4d54cd69a6a4.tar.xz gsoc2013-epiphany-575feabefc7e27e9e0b8cd5e7aac4d54cd69a6a4.tar.zst gsoc2013-epiphany-575feabefc7e27e9e0b8cd5e7aac4d54cd69a6a4.zip |
Add middle-click on New Tab/Window button to open URL on clipboard. Fix
2006-09-24 Jean-François Rameau <jframeau@cvs.gnome.org>
* src/ephy-window.c: (ephy_window_constructor):
* src/ephy-lockdown.c: (update_window):
* src/window-commands.c: (window_cmd_file_new_window), (window_cmd_file_new_tab):
* src/window-commands.h: (window_cmd_file_new_window), (window_cmd_file_new_tab):
* src/ephy-toolbar.c: (ephy_toolbar_set_window):
* src/ephy-home-action.c: (ephy_home_action_activate):
Add middle-click on New Tab/Window button to open URL on clipboard. Fix bug 149715.
Both New Tab and New Window actions are now EphyHomeAction.
Diffstat (limited to 'src/ephy-toolbar.c')
-rwxr-xr-x | src/ephy-toolbar.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c index 83a89f2a7..60acce052 100755 --- a/src/ephy-toolbar.c +++ b/src/ephy-toolbar.c @@ -359,6 +359,29 @@ ephy_toolbar_set_window (EphyToolbar *toolbar, G_CALLBACK (ephy_link_open), toolbar); gtk_action_group_add_action_with_accel (priv->action_group, action, "<alt>Home"); g_object_unref (action); + + action = g_object_new (EPHY_TYPE_HOME_ACTION, + "name", "FileNewTab", + "label", _("New _Tab"), + "stock_id", STOCK_NEW_TAB, + "tooltip", _("Open a new tab"), + NULL); + 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, + "name", "FileNewWindow", + "label", _("_New Window"), + "stock_id", STOCK_NEW_WINDOW, + "tooltip", _("Open a new window"), + NULL); + 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); + } /* public functions */ |