From d42ace6d967556cef7675de7414fb16938530497 Mon Sep 17 00:00:00 2001 From: Yosef Or Boczko Date: Fri, 30 Aug 2013 12:07:35 +0300 Subject: ephy-window: Always show the top bar in app mode and show/hide title according mode window * In normal mode: show address bar and hide title and reload/stop buttons. * In web application mode: hidde the address bar and show instead the page title and the reload/stop button. https://bugzilla.gnome.org/show_bug.cgi?id=706050 --- src/ephy-window.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ephy-window.c b/src/ephy-window.c index a57508669..a6cd27d51 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -691,7 +691,7 @@ get_chromes_visibility (EphyWindow *window, if (ephy_embed_shell_get_mode (ephy_embed_shell_get_default ()) == EPHY_EMBED_SHELL_MODE_APPLICATION) { - *show_toolbar = FALSE; + *show_toolbar = TRUE; *show_tabsbar = FALSE; } else @@ -3975,6 +3975,11 @@ ephy_window_constructor (GType type, mode = ephy_embed_shell_get_mode (ephy_embed_shell_get_default ()); if (mode == EPHY_EMBED_SHELL_MODE_APPLICATION) { + /* We don't need to show the page menu in web application mode. */ + action = gtk_action_group_get_action (toolbar_action_group, "PageMenu"); + ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, TRUE); + gtk_action_set_visible (action, FALSE); + action = gtk_action_group_get_action (toolbar_action_group, "FileNewTab"); ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, TRUE); -- cgit v1.2.3