aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-state.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 /lib/ephy-state.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 'lib/ephy-state.c')
-rw-r--r--lib/ephy-state.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/lib/ephy-state.c b/lib/ephy-state.c
index a23533ae4..52d8ef931 100644
--- a/lib/ephy-state.c
+++ b/lib/ephy-state.c
@@ -286,8 +286,16 @@ window_configure_event_cb (GtkWidget *widget,
GdkEventConfigure *event,
EphyNode *node)
{
- ephy_state_window_save_size (widget, node);
- ephy_state_window_save_position (widget, node);
+ GdkWindowState state;
+
+ state = gdk_window_get_state (widget->window);
+
+ if (!(state & GDK_WINDOW_STATE_FULLSCREEN))
+ {
+ ephy_state_window_save_size (widget, node);
+ ephy_state_window_save_position (widget, node);
+ }
+
return FALSE;
}
@@ -296,8 +304,12 @@ window_state_event_cb (GtkWidget *widget,
GdkEventWindowState *event,
EphyNode *node)
{
- ephy_state_window_save_size (widget, node);
- ephy_state_window_save_position (widget, node);
+ if (!(event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN))
+ {
+ ephy_state_window_save_size (widget, node);
+ ephy_state_window_save_position (widget, node);
+ }
+
return FALSE;
}