diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-09-17 00:55:09 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-09-17 00:55:09 +0800 |
commit | 3333b0f664a978f7cb86ce9cd164778e28febe06 (patch) | |
tree | 28cbd70e8d4a834a4d7162a5f05a0f53bd880e6b /src/bookmarks/ephy-bookmarks-editor.c | |
parent | c373fff1059ce15f8c4f4dc8616dc0f36bb65bea (diff) | |
download | gsoc2013-epiphany-3333b0f664a978f7cb86ce9cd164778e28febe06.tar gsoc2013-epiphany-3333b0f664a978f7cb86ce9cd164778e28febe06.tar.gz gsoc2013-epiphany-3333b0f664a978f7cb86ce9cd164778e28febe06.tar.bz2 gsoc2013-epiphany-3333b0f664a978f7cb86ce9cd164778e28febe06.tar.lz gsoc2013-epiphany-3333b0f664a978f7cb86ce9cd164778e28febe06.tar.xz gsoc2013-epiphany-3333b0f664a978f7cb86ce9cd164778e28febe06.tar.zst gsoc2013-epiphany-3333b0f664a978f7cb86ce9cd164778e28febe06.zip |
Adapt to changed GtkActionGroup api.
2003-09-16 Christian Persch <chpe@cvs.gnome.org>
* src/bookmarks/ephy-bookmarks-editor.c:
(ephy_bookmarks_editor_construct):
* src/ephy-window.c: (setup_window):
Adapt to changed GtkActionGroup api.
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-editor.c')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-editor.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 3c0cd258d..55a0bcf03 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -172,9 +172,6 @@ static GtkActionEntry ephy_bookmark_popup_entries [] = { { "Delete", GTK_STOCK_DELETE, N_("_Delete"), NULL, N_("Delete the selected bookmark or topic"), G_CALLBACK (cmd_delete) }, - { "ShowInBookmarksBar", NULL, N_("_Show in Bookmarks Bar"), NULL, - N_("Show the selected bookmark or topic in the bookmarks bar"), - G_CALLBACK (cmd_show_in_bookmarks_bar), TRUE }, { "Properties", GTK_STOCK_PROPERTIES, N_("_Properties"), "<alt>Return", N_("View or modify the properties of the selected bookmark"), G_CALLBACK (cmd_bookmark_properties) }, @@ -220,6 +217,16 @@ static GtkActionEntry ephy_bookmark_popup_entries [] = { }; static guint ephy_bookmark_popup_n_entries = G_N_ELEMENTS (ephy_bookmark_popup_entries); +static GtkToggleActionEntry ephy_bookmark_popup_toggle_entries [] = +{ + /* File Menu */ + { "ShowInBookmarksBar", NULL, N_("_Show in Bookmarks Bar"), NULL, + N_("Show the selected bookmark or topic in the bookmarks bar"), + G_CALLBACK (cmd_show_in_bookmarks_bar), FALSE } +}; + +static guint ephy_bookmark_popup_n_toggle_entries = G_N_ELEMENTS (ephy_bookmark_popup_toggle_entries); + static void entry_selection_changed_cb (GtkWidget *widget, GParamSpec *pspec, EphyBookmarksEditor *editor) { @@ -1226,6 +1233,10 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor) gtk_action_group_set_translation_domain (action_group, NULL); gtk_action_group_add_actions (action_group, ephy_bookmark_popup_entries, ephy_bookmark_popup_n_entries, editor); + gtk_action_group_add_toggle_actions (action_group, + ephy_bookmark_popup_toggle_entries, + ephy_bookmark_popup_n_toggle_entries, + editor); gtk_ui_manager_insert_action_group (ui_merge, action_group, 0); gtk_ui_manager_add_ui_from_file (ui_merge, |