[epiphany] ephy-window: Always show the top bar in app mode and show/hide title according mode window



commit d42ace6d967556cef7675de7414fb16938530497
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Fri Aug 30 12:07:35 2013 +0300

    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 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index a575086..a6cd27d 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]