aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2011-04-17 04:02:19 +0800
committerGustavo Noronha Silva <gns@gnome.org>2011-04-18 02:02:33 +0800
commit9d106fb898a71bca2d0aa9233b72a6423627942e (patch)
treede42e025bc3d3a1dac3e04e7efed42927b4260cf /src/ephy-window.c
parent44fe7350b9c253d974b050d49c6f88b3d4ef8bdb (diff)
downloadgsoc2013-epiphany-9d106fb898a71bca2d0aa9233b72a6423627942e.tar
gsoc2013-epiphany-9d106fb898a71bca2d0aa9233b72a6423627942e.tar.gz
gsoc2013-epiphany-9d106fb898a71bca2d0aa9233b72a6423627942e.tar.bz2
gsoc2013-epiphany-9d106fb898a71bca2d0aa9233b72a6423627942e.tar.lz
gsoc2013-epiphany-9d106fb898a71bca2d0aa9233b72a6423627942e.tar.xz
gsoc2013-epiphany-9d106fb898a71bca2d0aa9233b72a6423627942e.tar.zst
gsoc2013-epiphany-9d106fb898a71bca2d0aa9233b72a6423627942e.zip
Do not save state for popup windows
Bug #580951
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 2d10dbedb..4a874ce27 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3925,8 +3925,12 @@ ephy_window_show (GtkWidget *widget)
ephy_tab_get_size (embed, &width, &height);
if (width == -1 && height == -1)
{
+ int flags = 0;
+ if (!priv->is_popup)
+ flags = EPHY_STATE_WINDOW_SAVE_SIZE;
+
ephy_state_add_window (widget, "main_window", 600, 500,
- TRUE, EPHY_STATE_WINDOW_SAVE_SIZE);
+ TRUE, flags);
}
priv->has_size = TRUE;