aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-09 17:34:23 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-09 17:34:23 +0800
commit56be2badc73eacaee1de6c76193c6311ca10f6bd (patch)
treef81daaaf6983f2ebbd02a7d327f89ba1f48e0018
parent42a63cd385d21f1c9a0eeb198470b73523fa704c (diff)
downloadgsoc2013-epiphany-56be2badc73eacaee1de6c76193c6311ca10f6bd.tar
gsoc2013-epiphany-56be2badc73eacaee1de6c76193c6311ca10f6bd.tar.gz
gsoc2013-epiphany-56be2badc73eacaee1de6c76193c6311ca10f6bd.tar.bz2
gsoc2013-epiphany-56be2badc73eacaee1de6c76193c6311ca10f6bd.tar.lz
gsoc2013-epiphany-56be2badc73eacaee1de6c76193c6311ca10f6bd.tar.xz
gsoc2013-epiphany-56be2badc73eacaee1de6c76193c6311ca10f6bd.tar.zst
gsoc2013-epiphany-56be2badc73eacaee1de6c76193c6311ca10f6bd.zip
Fix window position restoring logic error. Fixes bug ##130919, patch from
2004-01-08 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-state.c: (ephy_state_window_set_position): Fix window position restoring logic error. Fixes bug ##130919, patch from Dave Jones.
-rw-r--r--ChangeLog7
-rw-r--r--lib/ephy-state.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 145cf19b0..fe5d05979 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-01-08 Christian Persch <chpe@cvs.gnome.org>
+
+ * lib/ephy-state.c: (ephy_state_window_set_position):
+
+ Fix window position restoring logic error. Fixes bug ##130919, patch
+ from Dave Jones.
+
2004-01-06 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/MozillaPrivate.cpp:
diff --git a/lib/ephy-state.c b/lib/ephy-state.c
index a78da0b4f..35c8a119f 100644
--- a/lib/ephy-state.c
+++ b/lib/ephy-state.c
@@ -210,7 +210,7 @@ ephy_state_window_set_position (GtkWidget *window, EphyNode *node)
size = ephy_node_get_property_boolean (node, EPHY_NODE_STATE_PROP_POSITION);
/* Don't set the position of the window if it is maximized */
- if (!maximize & size)
+ if ((!maximize) && size)
{
x = ephy_node_get_property_int (node, EPHY_NODE_STATE_PROP_POSITION_X);
y = ephy_node_get_property_int (node, EPHY_NODE_STATE_PROP_POSITION_Y);