diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-13 02:58:26 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-14 04:21:47 +0800 |
commit | be08c39dc2cd36142fa299b96f2d6385390b70f2 (patch) | |
tree | 8d6a7650d947cde37ac4aa4c17770473db3cad29 /src | |
parent | b162aed9c4c965dc506dd951c94d9c080042e889 (diff) | |
download | gsoc2013-epiphany-be08c39dc2cd36142fa299b96f2d6385390b70f2.tar gsoc2013-epiphany-be08c39dc2cd36142fa299b96f2d6385390b70f2.tar.gz gsoc2013-epiphany-be08c39dc2cd36142fa299b96f2d6385390b70f2.tar.bz2 gsoc2013-epiphany-be08c39dc2cd36142fa299b96f2d6385390b70f2.tar.lz gsoc2013-epiphany-be08c39dc2cd36142fa299b96f2d6385390b70f2.tar.xz gsoc2013-epiphany-be08c39dc2cd36142fa299b96f2d6385390b70f2.tar.zst gsoc2013-epiphany-be08c39dc2cd36142fa299b96f2d6385390b70f2.zip |
ephy-window: simplify the chrome visibility logic
There's no difference between fullscreen and non fullscreen atm.
Diffstat (limited to 'src')
-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 |