[epiphany] ephy-window: Do not set an empty size for popup windows
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-window: Do not set an empty size for popup windows
- Date: Tue, 25 Feb 2014 14:52:34 +0000 (UTC)
commit ede68477762f10d6c2bcd93475a3e01e7e593e19
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Tue Feb 25 15:50:52 2014 +0100
ephy-window: Do not set an empty size for popup windows
src/ephy-window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index a3a4dc6..6f04f17 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1980,7 +1980,8 @@ ephy_window_configure_for_view (EphyWindow *window,
}
webkit_window_properties_get_geometry (properties, &geometry);
- gtk_window_set_default_size (GTK_WINDOW (window), geometry.width, geometry.height);
+ if (geometry.width > 0 && geometry.height > 0)
+ gtk_window_set_default_size (GTK_WINDOW (window), geometry.width, geometry.height);
if (!webkit_window_properties_get_resizable (properties))
gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]