aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-04-05 20:53:29 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-05 20:53:29 +0800
commitb3b66a73fca6da255a313862b68a147ec7fcf707 (patch)
treeaa0e5b1152c4533063e3429d0b8c75e41a6ac570 /src/ephy-window.c
parent1a09e5e82379afe72911f7f1cdf407bed57813e9 (diff)
downloadgsoc2013-epiphany-b3b66a73fca6da255a313862b68a147ec7fcf707.tar
gsoc2013-epiphany-b3b66a73fca6da255a313862b68a147ec7fcf707.tar.gz
gsoc2013-epiphany-b3b66a73fca6da255a313862b68a147ec7fcf707.tar.bz2
gsoc2013-epiphany-b3b66a73fca6da255a313862b68a147ec7fcf707.tar.lz
gsoc2013-epiphany-b3b66a73fca6da255a313862b68a147ec7fcf707.tar.xz
gsoc2013-epiphany-b3b66a73fca6da255a313862b68a147ec7fcf707.tar.zst
gsoc2013-epiphany-b3b66a73fca6da255a313862b68a147ec7fcf707.zip
Have a decent size for popups that doesnt specify it. Do not allow to drag
2003-04-05 Marco Pesenti Gritti <marco@it.gnome.org> * src/bookmarks/ephy-bookmarks.h: * src/bookmarks/ephy-node-view.c: (drag_motion_cb), (drag_drop_cb), (drag_data_received_cb): * src/ephy-window.c: (ephy_window_show): Have a decent size for popups that doesnt specify it. Do not allow to drag on special topics.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c18
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);
}