diff options
author | Jon Svendsen <jon-sven@frisurf.no> | 2003-03-18 07:36:23 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-03-18 07:36:23 +0800 |
commit | d248386941ce108b1e99d1a553682d5af791a628 (patch) | |
tree | 0a14a8381be731bdc512708302d24fbaa78401c5 | |
parent | b3560643271d1c4b9eb16d96c2e9b065546628e9 (diff) | |
download | gsoc2013-epiphany-d248386941ce108b1e99d1a553682d5af791a628.tar gsoc2013-epiphany-d248386941ce108b1e99d1a553682d5af791a628.tar.gz gsoc2013-epiphany-d248386941ce108b1e99d1a553682d5af791a628.tar.bz2 gsoc2013-epiphany-d248386941ce108b1e99d1a553682d5af791a628.tar.lz gsoc2013-epiphany-d248386941ce108b1e99d1a553682d5af791a628.tar.xz gsoc2013-epiphany-d248386941ce108b1e99d1a553682d5af791a628.tar.zst gsoc2013-epiphany-d248386941ce108b1e99d1a553682d5af791a628.zip |
Properly save maximized/unmaximized state.
2003-03-17 Jon Svendsen <jon-sven@frisurf.no>
* lib/ephy-state.c: (ephy_state_save_window):
Properly save maximized/unmaximized state.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/ephy-state.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2003-03-17 Jon Svendsen <jon-sven@frisurf.no> + + * lib/ephy-state.c: (ephy_state_save_window): + + Properly save maximized/unmaximized state. + 2003-03-17 Marco Pesenti Gritti <marco@it.gnome.org> * configure.in: diff --git a/lib/ephy-state.c b/lib/ephy-state.c index 245cc38b1..9bf28ebdc 100644 --- a/lib/ephy-state.c +++ b/lib/ephy-state.c @@ -64,8 +64,8 @@ ephy_state_save_window (GtkWidget *window, gchar *buf; state = gdk_window_get_state (GTK_WIDGET (window)->window); - maximized = state && GDK_WINDOW_STATE_MAXIMIZED; - + maximized = ((state & GDK_WINDOW_STATE_MAXIMIZED) > 0); + buf = g_strdup_printf (CONF_GUL_STATE_PATH "/%s/maximized",name); eel_gconf_set_boolean (buf, maximized); g_free (buf); |