diff options
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index e3a60f6a4..e5dfa26d4 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -938,11 +938,27 @@ ephy_window_show (GtkWidget *widget) !(window->priv->chrome_mask & EMBED_CHROME_OPENASFULLSCREEN) && !GTK_WIDGET_VISIBLE (widget)) { - ephy_state_add_window (GTK_WIDGET(window), + ephy_state_add_window (widget, "main_window", 600, 500); } + if ((window->priv->chrome_mask & EMBED_CHROME_OPENASPOPUP) && + !GTK_WIDGET_VISIBLE (widget)) + { + EphyTab *tab; + int width, height; + + tab = ephy_window_get_active_tab (EPHY_WINDOW (window)); + g_return_if_fail (tab != NULL); + + ephy_tab_get_size (tab, &width, &height); + if (width == -1 && height == -1) + { + gtk_window_resize (GTK_WINDOW (window), 600, 500); + } + } + GTK_WIDGET_CLASS (parent_class)->show (widget); } |