aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-history-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r--src/ephy-history-window.c34
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);