aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-dialog.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-01-25 02:41:33 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-01-25 02:41:33 +0800
commit1031add940150d838c6cad57df633df3827dc494 (patch)
treee65b097e41f6c9979c913691788da12d19f691ef /lib/ephy-dialog.c
parent7f3a1cdca5440ab0ab830c67be4aba8e722e314d (diff)
downloadgsoc2013-epiphany-1031add940150d838c6cad57df633df3827dc494.tar
gsoc2013-epiphany-1031add940150d838c6cad57df633df3827dc494.tar.gz
gsoc2013-epiphany-1031add940150d838c6cad57df633df3827dc494.tar.bz2
gsoc2013-epiphany-1031add940150d838c6cad57df633df3827dc494.tar.lz
gsoc2013-epiphany-1031add940150d838c6cad57df633df3827dc494.tar.xz
gsoc2013-epiphany-1031add940150d838c6cad57df633df3827dc494.tar.zst
gsoc2013-epiphany-1031add940150d838c6cad57df633df3827dc494.zip
Prepare for 1.1.5
2004-01-24 Marco Pesenti Gritti <marco@gnome.org> * configure.in: Prepare for 1.1.5 * lib/ephy-dialog.c: (setup_default_size): Fix a bug with downloader dialog size persistance
Diffstat (limited to 'lib/ephy-dialog.c')
-rw-r--r--lib/ephy-dialog.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c
index 4d1fd9e17..0ed3df6fd 100644
--- a/lib/ephy-dialog.c
+++ b/lib/ephy-dialog.c
@@ -968,11 +968,18 @@ setup_default_size (EphyDialog *dialog)
{
if (dialog->priv->has_default_size == FALSE)
{
+ EphyStateWindowFlags flags;
+
+ flags = EPHY_STATE_WINDOW_SAVE_SIZE;
+
+ if (dialog->priv->persist_position)
+ {
+ flags |= EPHY_STATE_WINDOW_SAVE_POSITION;
+ }
+
ephy_state_add_window (dialog->priv->dialog,
dialog->priv->name, -1, -1,
- dialog->priv->persist_position ?
- EPHY_STATE_WINDOW_SAVE_POSITION :
- EPHY_STATE_WINDOW_SAVE_SIZE);
+ flags);
dialog->priv->has_default_size = TRUE;
}