aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-19 19:31:05 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-19 19:31:05 +0800
commita43f391a6c26f27d16ea8116bd62051a076733ca (patch)
treeb5f490e5d5cd94cfa32b4866d67112577056131a /src/window-commands.c
parent3c102efdf843bd1a8ff61875f1556037c163a95e (diff)
downloadgsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar.gz
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar.bz2
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar.lz
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar.xz
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.tar.zst
gsoc2013-epiphany-a43f391a6c26f27d16ea8116bd62051a076733ca.zip
With the gtk fullscreen api things can be cleaner: use the api instead of
2003-06-19 Marco Pesenti Gritti <marco@it.gnome.org> * embed/ephy-embed-types.h: * lib/ephy-state.c: (window_configure_event_cb), (window_state_event_cb): * src/ephy-window.c: (ephy_window_destroy), (ephy_window_class_init), (update_exit_fullscreen_popup_position), (size_changed_cb), (exit_fullscreen_button_clicked_cb), (update_chromes_visibility), (ephy_window_fullscreen), (ephy_window_unfullscreen), (ephy_window_state_event_cb), (setup_window), (sync_tab_icon), (sync_tab_load_progress), (sync_tab_load_status), (ephy_window_init), (save_window_chrome), (translate_default_chrome), (update_layout_toggles), (ephy_window_set_chrome), (ephy_window_show): * src/window-commands.c: (window_cmd_view_fullscreen): With the gtk fullscreen api things can be cleaner: use the api instead of chromes to handle fullscreen, dont persist window state when it's fullscreen. Destroy exit fullscreen button on window destroy. * src/ephy-shell.c: (ephy_shell_new_tab): Give up on cloning until we find a good way to do it :/
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));
}
}