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 | |
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.
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | data/ui/epiphany-ui.xml | 15 | ||||
-rw-r--r-- | src/ephy-window.c | 8 |
3 files changed, 28 insertions, 6 deletions
@@ -1,5 +1,16 @@ 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. + +2005-01-06 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-go-action.c: (create_tool_item): Don't focus the button on click. diff --git a/data/ui/epiphany-ui.xml b/data/ui/epiphany-ui.xml index de3b72f92..a5dc99572 100644 --- a/data/ui/epiphany-ui.xml +++ b/data/ui/epiphany-ui.xml @@ -82,8 +82,10 @@ <menuitem name="TabsPreviousMenu" action="TabsPrevious"/> <menuitem name="TabsNextMenu" action="TabsNext"/> <separator name="TabsSep1"/> - <menuitem name="TabsMoveLeftMenu" action="TabsMoveLeft"/> - <menuitem name="TabsMoveRightMenu" action="TabsMoveRight"/> + <placeholder name="TabsMoveGroup"> + <menuitem name="TabsMoveLeftMenu" action="TabsMoveLeft"/> + <menuitem name="TabsMoveRightMenu" action="TabsMoveRight"/> + </placeholder> <menuitem name="TabsDetachMenu" action="TabsDetach"/> <placeholder name="TabsOpen"> <separator name="TabsSep2"/> @@ -181,11 +183,12 @@ <menuitem name="CopyImageLocationIELP" action="CopyImageLocation"/> </popup> - <popup name="EphyNotebookPopup" action="PopupAction"> +<popup name="EphyNotebookPopup" action="NotebookPopupAction"> + <placeholder name="TabsMoveGroupENP" position="top"> + <menuitem name="TabMoveLeftENP" action="TabsMoveLeft"/> + <menuitem name="TabMoveRightENP" action="TabsMoveRight"/> + </placeholder> <menuitem name="TabDetachENP" action="TabsDetach"/> - <separator name="TabsSep1"/> - <menuitem name="TabMoveLeftENP" action="TabsMoveLeft"/> - <menuitem name="TabMoveRightENP" action="TabsMoveRight"/> </popup> <accelerator name="BrowseWithCaretAccel" action="BrowseWithCaret"/> 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, |