aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib/ephy-state.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9baf61ed8..ba7cc2131 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);