diff options
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 153829cf8..d5e5f9a43 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -725,22 +725,16 @@ get_chromes_visibility (EphyWindow *window, EphyWindowPrivate *priv = window->priv; EphyWebViewChrome flags = priv->chrome; - if (window->priv->fullscreen_mode) + if (ephy_embed_shell_get_mode (embed_shell) == EPHY_EMBED_SHELL_MODE_APPLICATION) { - *show_toolbar = (flags & EPHY_WEB_VIEW_CHROME_TOOLBAR) != 0; - *show_tabsbar = !priv->is_popup; + *show_toolbar = FALSE; + *show_tabsbar = FALSE; } else { *show_toolbar = (flags & EPHY_WEB_VIEW_CHROME_TOOLBAR) != 0; *show_tabsbar = !priv->is_popup; } - - if (ephy_embed_shell_get_mode (embed_shell) == EPHY_EMBED_SHELL_MODE_APPLICATION) - { - *show_toolbar = FALSE; - *show_tabsbar = FALSE; - } } static void |