diff options
author | David Bordoley <bordoley@msu.edu> | 2003-04-21 20:36:40 +0800 |
---|---|---|
committer | Dave Bordoley <Bordoley@src.gnome.org> | 2003-04-21 20:36:40 +0800 |
commit | 861ffe47ca91ae1fa7a39c422c6941885d31bb2d (patch) | |
tree | 423ec5b23d08b32c42e1d5c0992b407255af1e75 /src/ephy-history-window.c | |
parent | 89f94d0afc4ce506aea6ad94ccb0f64cf6679851 (diff) | |
download | gsoc2013-epiphany-861ffe47ca91ae1fa7a39c422c6941885d31bb2d.tar gsoc2013-epiphany-861ffe47ca91ae1fa7a39c422c6941885d31bb2d.tar.gz gsoc2013-epiphany-861ffe47ca91ae1fa7a39c422c6941885d31bb2d.tar.bz2 gsoc2013-epiphany-861ffe47ca91ae1fa7a39c422c6941885d31bb2d.tar.lz gsoc2013-epiphany-861ffe47ca91ae1fa7a39c422c6941885d31bb2d.tar.xz gsoc2013-epiphany-861ffe47ca91ae1fa7a39c422c6941885d31bb2d.tar.zst gsoc2013-epiphany-861ffe47ca91ae1fa7a39c422c6941885d31bb2d.zip |
Fixed a duplicate seperator. Add a view menu.
2003-04-21 David Bordoley <bordoley@msu.edu>
* data/ui/epiphany-bookmark-editor-ui.xml.in:
Fixed a duplicate seperator. Add a view menu.
* data/ui/epiphany-history-window-ui.xml.in:
Add a view menu.
* src/ephy-history-window.c: (ephy_history_window_construct):
Clean up ephy_history_ui_entries[] so that it is a little more
organized. Add a view menu, but still needs to be hooked up.
* src/bookmarks/ephy-bookmark-properties.c: (build_ui):
s/"Show in the bookmarks _toolbar"/"_Show in the bookmarks toolbar".
Fixes a mnemonic collision.
* src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_construct):
Clean up ephy_bookmark_popup_entries[] so that it is a little more
organized. Add a view menu, but still needs to be hooked up. Add mnemonic
to the "_Show in Toolbar" menu entry.
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r-- | src/ephy-history-window.c | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c index 1e8fe788d..9836f20a6 100644 --- a/src/ephy-history-window.c +++ b/src/ephy-history-window.c @@ -35,6 +35,7 @@ #include "ephy-dnd.h" #include "ephy-prefs.h" #include "egg-action-group.h" +#include "egg-toggle-action.h" #include "egg-menu-merge.h" #include "ephy-state.h" #include "window-commands.h" @@ -114,45 +115,47 @@ static EggActionGroupEntry ephy_history_ui_entries [] = { /* Toplevel */ { "File", N_("_File"), NULL, NULL, NULL, NULL, NULL }, { "Edit", N_("_Edit"), NULL, NULL, NULL, NULL, NULL }, + { "View", N_("_View"), NULL, NULL, NULL, NULL, NULL }, { "Help", N_("_Help"), NULL, NULL, NULL, NULL, NULL }, { "FakeToplevel", (""), NULL, NULL, NULL, NULL, NULL }, + /* File Menu */ { "OpenInWindow", N_("_Open in New Window"), GTK_STOCK_OPEN, "<control>O", NULL, G_CALLBACK (cmd_open_bookmarks_in_browser), NULL }, - { "OpenInTab", N_("Open in New _Tab"), NULL, "<shift><control>O", NULL, G_CALLBACK (cmd_open_bookmarks_in_tabs), NULL }, - - { "Clear", N_("C_lear History"), GTK_STOCK_CLEAR, NULL, - NULL, G_CALLBACK (cmd_clear), NULL }, - { "Delete", N_("_Delete"), GTK_STOCK_DELETE, NULL, NULL, G_CALLBACK (cmd_delete), NULL}, - { "BookmarkPage", N_("Boo_kmark Page..."), EPHY_STOCK_BOOKMARK_PAGE, "<control>D", NULL, G_CALLBACK (cmd_bookmark_page), NULL }, - { "Close", N_("_Close"), GTK_STOCK_CLOSE, "<control>W", NULL, G_CALLBACK (cmd_close), NULL }, - + + /* Edit Menu */ { "Cut", N_("Cu_t"), GTK_STOCK_CUT, "<control>X", NULL, G_CALLBACK (cmd_cut), NULL }, - { "Copy", N_("_Copy"), GTK_STOCK_COPY, "<control>C", NULL, G_CALLBACK (cmd_copy), NULL }, - { "Paste", N_("_Paste"), GTK_STOCK_PASTE, "<control>V", NULL, G_CALLBACK (cmd_paste), NULL }, - { "SelectAll", N_("Select _All"), NULL, "<control>A", NULL, G_CALLBACK (cmd_select_all), NULL }, + { "Clear", N_("C_lear History"), GTK_STOCK_CLEAR, NULL, + NULL, G_CALLBACK (cmd_clear), NULL }, + + /* View Menu */ + { "ViewTitle", N_("_Title"), NULL, NULL, + NULL, NULL, NULL, RADIO_ACTION, NULL }, + { "ViewLocation", N_("_Location"), NULL, NULL, + NULL, NULL, NULL, RADIO_ACTION, "ViewTitle" }, + { "ViewTitleLocation", N_("T_itle and Location"), NULL, NULL, + NULL, NULL, NULL, RADIO_ACTION, "ViewTitle" }, + /* Help Menu */ { "HelpContents", N_("_Contents"), GTK_STOCK_HELP, "F1", NULL, G_CALLBACK (cmd_help_contents), NULL }, - { "HelpAbout", N_("_About"), GNOME_STOCK_ABOUT, NULL, NULL, G_CALLBACK (window_cmd_help_about), NULL }, - }; static guint ephy_history_ui_n_entries = G_N_ELEMENTS (ephy_history_ui_entries); @@ -745,6 +748,7 @@ ephy_history_window_construct (EphyHistoryWindow *editor) EphyNode *node; EggMenuMerge *ui_merge; EggActionGroup *action_group; + EggAction *action; const char *icon_path; int i; @@ -786,6 +790,10 @@ ephy_history_window_construct (EphyHistoryWindow *editor) menu = egg_menu_merge_get_widget (ui_merge, "/menu/EditMenu"); g_signal_connect (menu, "activate", G_CALLBACK (menu_activate_cb), editor); + /* Fixme: We should implement gconf prefs for monitoring this setting */ + action = egg_action_group_get_action (action_group, "ViewTitle"); + egg_toggle_action_set_active (EGG_TOGGLE_ACTION (action), TRUE); + hpaned = gtk_hpaned_new (); gtk_container_set_border_width (GTK_CONTAINER (hpaned), 6); gtk_container_add (GTK_CONTAINER (editor->priv->menu_dock), hpaned); |