aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 22da177b3..a42849b51 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -570,19 +570,13 @@ void
window_cmd_view_fullscreen (EggAction *action,
EphyWindow *window)
{
- EmbedChromeMask mask;
- gboolean active;
- gboolean current_state;
-
- mask = ephy_window_get_chrome (window);
- active = EGG_TOGGLE_ACTION (action)->active;
- current_state = (mask & EMBED_CHROME_OPENASFULLSCREEN) > 0;
-
- if (active != current_state)
+ if (EGG_TOGGLE_ACTION (action)->active)
{
- mask ^= EMBED_CHROME_OPENASFULLSCREEN;
- mask |= EMBED_CHROME_DEFAULT;
- ephy_window_set_chrome (window, mask);
+ gtk_window_fullscreen (GTK_WINDOW (window));
+ }
+ else
+ {
+ gtk_window_unfullscreen (GTK_WINDOW (window));
}
}