diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-01-06 23:24:47 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-06 23:24:47 +0800 |
commit | 58a62ea3932ab6bdb599a0c519460a56622fe884 (patch) | |
tree | de64c85a5b37cb6e3cde4544ad82bb621855b00d /src/ephy-window.c | |
parent | 1a6b25785d7934d87bff6615ba875279958e49c2 (diff) | |
download | gsoc2013-epiphany-58a62ea3932ab6bdb599a0c519460a56622fe884.tar gsoc2013-epiphany-58a62ea3932ab6bdb599a0c519460a56622fe884.tar.gz gsoc2013-epiphany-58a62ea3932ab6bdb599a0c519460a56622fe884.tar.bz2 gsoc2013-epiphany-58a62ea3932ab6bdb599a0c519460a56622fe884.tar.lz gsoc2013-epiphany-58a62ea3932ab6bdb599a0c519460a56622fe884.tar.xz gsoc2013-epiphany-58a62ea3932ab6bdb599a0c519460a56622fe884.tar.zst gsoc2013-epiphany-58a62ea3932ab6bdb599a0c519460a56622fe884.zip |
Add placeholder group for tabs move actions.
2005-01-06 Christian Persch <chpe@cvs.gnome.org>
* data/ui/epiphany-ui.xml:
Add placeholder group for tabs move actions.
* src/ephy-window.c: (show_notebook_popup_menu):
Activate the action before showing the context menu, so
extensions can sync their UI.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 0ba58a61c..4ae0c4a84 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -100,6 +100,7 @@ static GtkActionEntry ephy_menu_entries [] = { { "Tabs", NULL, N_("_Tabs") }, { "Help", NULL, N_("_Help") }, { "PopupAction", NULL, "" }, + { "NotebookPopupAction", NULL, "" }, /* File menu */ @@ -2049,10 +2050,17 @@ show_notebook_popup_menu (GtkNotebook *notebook, GdkEventButton *event) { GtkWidget *menu, *tab, *tab_label; + GtkAction *action; menu = gtk_ui_manager_get_widget (window->priv->manager, "/EphyNotebookPopup"); g_return_val_if_fail (menu != NULL, FALSE); + /* allow extensions to sync when showing the popup */ + action = gtk_action_group_get_action (window->priv->action_group, + "NotebookPopupAction"); + g_return_val_if_fail (action != NULL, FALSE); + gtk_action_activate (action); + if (event != NULL) { gtk_menu_popup (GTK_MENU (menu), NULL, NULL, |