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-window.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-window.c')
-rw-r--r-- | src/ephy-window.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 4039f112f..04539f2b9 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -126,12 +126,6 @@ static const GtkActionEntry ephy_menu_entries [] = { /* File menu */ - { "FileNewWindow", STOCK_NEW_WINDOW, N_("_New Window"), "<control>N", - N_("Open a new window"), - G_CALLBACK (window_cmd_file_new_window) }, - { "FileNewTab", STOCK_NEW_TAB, N_("New _Tab"), "<control>T", - N_("Open a new tab"), - G_CALLBACK (window_cmd_file_new_tab) }, { "FileOpen", GTK_STOCK_OPEN, N_("_Open..."), "<control>O", N_("Open a file"), G_CALLBACK (window_cmd_file_open) }, @@ -3070,6 +3064,7 @@ ephy_window_constructor (GType type, EggToolbarsModel *model; GtkSettings *settings; GtkAction *action; + GtkActionGroup *toolbar_action_group; GError *error = NULL; guint settings_connection; @@ -3204,7 +3199,8 @@ ephy_window_constructor (GType type, G_CALLBACK (sync_network_status), window); /* Popup part */ - action = gtk_action_group_get_action (priv->action_group, "FileNewTab"); + toolbar_action_group = ephy_toolbar_get_action_group (priv->toolbar); + action = gtk_action_group_get_action (toolbar_action_group, "FileNewTab"); ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, priv->is_popup); action = gtk_action_group_get_action (priv->popups_action_group, "OpenLinkInNewTab"); |