diff options
author | Martin Robinson <mrobinson@igalia.com> | 2011-04-20 06:22:10 +0800 |
---|---|---|
committer | Xan Lopez <xlopez@igalia.com> | 2011-06-14 04:37:46 +0800 |
commit | 8bdee5f4dded2cea80e62b9402e138e7dc0f37c2 (patch) | |
tree | 6f6a007252186ff5910aa55ffb3a92e385e5f304 | |
parent | 2591b899a411c78369a2455e3df61d72f9e4a9f6 (diff) | |
download | gsoc2013-epiphany-8bdee5f4dded2cea80e62b9402e138e7dc0f37c2.tar gsoc2013-epiphany-8bdee5f4dded2cea80e62b9402e138e7dc0f37c2.tar.gz gsoc2013-epiphany-8bdee5f4dded2cea80e62b9402e138e7dc0f37c2.tar.bz2 gsoc2013-epiphany-8bdee5f4dded2cea80e62b9402e138e7dc0f37c2.tar.lz gsoc2013-epiphany-8bdee5f4dded2cea80e62b9402e138e7dc0f37c2.tar.xz gsoc2013-epiphany-8bdee5f4dded2cea80e62b9402e138e7dc0f37c2.tar.zst gsoc2013-epiphany-8bdee5f4dded2cea80e62b9402e138e7dc0f37c2.zip |
Tweak the "Hide Menubar" UI options slightly.
Remove the menubar visibility options from the content context menu
and adds them to the chrome context menu. Invert the meaning of the
option and update the option text.
-rw-r--r-- | data/ui/epiphany-ui.xml | 6 | ||||
-rw-r--r-- | src/ephy-window.c | 12 |
2 files changed, 8 insertions, 10 deletions
diff --git a/data/ui/epiphany-ui.xml b/data/ui/epiphany-ui.xml index b9d415f40..1c2fff369 100644 --- a/data/ui/epiphany-ui.xml +++ b/data/ui/epiphany-ui.xml @@ -47,7 +47,7 @@ <separator/> </menu> </placeholder> - <menuitem name="HideMenubar" action="HideMenubar"/> + <menuitem name="ViewMenuBar" action="ViewMenuBar"/> <menuitem name="ViewDownloadsBar" action="ViewDownloadsBar"/> <separator name="ViewSep1"/> <menuitem name="ViewPopupsMenu" action="ViewPopupWindows"/> @@ -144,8 +144,6 @@ <menuitem name="CopyImageLocationDP" action="CopyImageLocation"/> <separator /> <menuitem name="InspectElementDP" action="InspectElement"/> - <separator /> - <menuitem action="HideMenubar" /> </popup> <popup name="EphyLinkPopup" action="PopupAction"> @@ -205,6 +203,8 @@ <separator/> <menuitem action="ViewToolbarEditor"/> <separator/> + <menuitem action="ViewMenuBar" /> + <menuitem name="ViewDownloadsBar" action="ViewDownloadsBar"/> </popup> <accelerator name="AlwaysStopAccel" action="ViewAlwaysStop"/> diff --git a/src/ephy-window.c b/src/ephy-window.c index 7da0ba4e4..006915126 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -286,9 +286,8 @@ static const GtkToggleActionEntry ephy_menu_toggle_entries [] = N_("Show the active downloads for this window"), NULL, FALSE }, - { "HideMenubar", NULL, N_("Hide Men_ubar"), NULL, - NULL, - G_CALLBACK (ephy_window_view_menubar_cb), FALSE }, + { "ViewMenuBar", NULL, N_("Men_ubar"), NULL, + NULL, G_CALLBACK (ephy_window_view_menubar_cb), TRUE }, { "ViewFullscreen", GTK_STOCK_FULLSCREEN, N_("_Fullscreen"), "F11", N_("Browse at full screen"), G_CALLBACK (window_cmd_view_fullscreen), FALSE }, @@ -1537,12 +1536,11 @@ update_chromes_actions (EphyWindow *window) g_signal_handlers_unblock_by_func (G_OBJECT (action), G_CALLBACK (ephy_window_view_toolbar_cb), window); - - action = gtk_action_group_get_action (action_group, "HideMenubar"); + action = gtk_action_group_get_action (action_group, "ViewMenuBar"); g_signal_handlers_block_by_func (G_OBJECT (action), G_CALLBACK (ephy_window_view_menubar_cb), window); - gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), !show_menubar); + gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), show_menubar); g_signal_handlers_unblock_by_func (G_OBJECT (action), G_CALLBACK (ephy_window_view_menubar_cb), window); @@ -4139,7 +4137,7 @@ ephy_window_view_menubar_cb (GtkAction *action, EphyWindow *window) { sync_chrome_with_view_toggle (action, window, - EPHY_WEB_VIEW_CHROME_MENUBAR, TRUE); + EPHY_WEB_VIEW_CHROME_MENUBAR, FALSE); } static void |