aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-06-11 18:07:25 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-06-20 19:48:29 +0800
commitec940554678b2776ef7e76e33ba1756cee0d3519 (patch)
tree053d2f7bf07b23b6dfeef216ed544502e048861f /src/ephy-window.c
parent6c69d491e6275aead0bdfcfa4f2d436d093aadff (diff)
downloadgsoc2013-epiphany-ec940554678b2776ef7e76e33ba1756cee0d3519.tar.gz
gsoc2013-epiphany-ec940554678b2776ef7e76e33ba1756cee0d3519.tar.zst
gsoc2013-epiphany-ec940554678b2776ef7e76e33ba1756cee0d3519.zip
ephy-window: hide all chrome when entering fullscreen mode
We keep track of the state of the chrome before entering fullscreen mode in order to restore it afterwards. Also, set tabs-allowed to FALSE in the EphyNotebook when in fullscreen mode. When leaving fullscreen mode, restore to the previous state. https://bugzilla.gnome.org/show_bug.cgi?id=671195
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 3ebeec78f..3a19b6307 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -339,6 +339,7 @@ struct _EphyWindowPrivate
EphyEmbed *active_embed;
EphyFindToolbar *find_toolbar;
EphyWebViewChrome chrome;
+ EphyWebViewChrome pre_fullscreen_chrome;
EphyEmbedEvent *context_event;
guint idle_worker;
GtkWidget *downloads_box;
@@ -677,7 +678,7 @@ get_chromes_visibility (EphyWindow *window,
else
{
*show_toolbar = (flags & EPHY_WEB_VIEW_CHROME_TOOLBAR) != 0;
- *show_tabsbar = !priv->is_popup;
+ *show_tabsbar = !(priv->is_popup || priv->fullscreen_mode);
}
*show_downloads_box = (flags & EPHY_WEB_VIEW_CHROME_DOWNLOADS_BOX);
@@ -808,6 +809,8 @@ ephy_window_fullscreen (EphyWindow *window)
EphyEmbed *embed;
priv->fullscreen_mode = TRUE;
+ priv->pre_fullscreen_chrome = priv->chrome;
+ priv->chrome = 0;
/* sync status */
embed = window->priv->active_embed;
@@ -821,6 +824,7 @@ static void
ephy_window_unfullscreen (EphyWindow *window)
{
window->priv->fullscreen_mode = FALSE;
+ window->priv->chrome = window->priv->pre_fullscreen_chrome;
sync_chromes_visibility (window);
}