[epiphany] ephy-window: simplify the chrome visibility logic



commit be08c39dc2cd36142fa299b96f2d6385390b70f2
Author: Xan Lopez <xan igalia com>
Date:   Thu Jan 12 19:58:26 2012 +0100

    ephy-window: simplify the chrome visibility logic
    
    There's no difference between fullscreen and non fullscreen atm.

 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 153829c..d5e5f9a 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



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