diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2004-02-28 03:42:55 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-02-28 03:42:55 +0800 |
commit | 78fc10863afdecaee83eaa18c9766fffd5dd9e23 (patch) | |
tree | ccab86f5d0fdedc94ff6da64cf5bb3888d80c865 /lib | |
parent | a0393b9cd91a4978bcae1e757d520d158b8b2610 (diff) | |
download | gsoc2013-epiphany-78fc10863afdecaee83eaa18c9766fffd5dd9e23.tar gsoc2013-epiphany-78fc10863afdecaee83eaa18c9766fffd5dd9e23.tar.gz gsoc2013-epiphany-78fc10863afdecaee83eaa18c9766fffd5dd9e23.tar.bz2 gsoc2013-epiphany-78fc10863afdecaee83eaa18c9766fffd5dd9e23.tar.lz gsoc2013-epiphany-78fc10863afdecaee83eaa18c9766fffd5dd9e23.tar.xz gsoc2013-epiphany-78fc10863afdecaee83eaa18c9766fffd5dd9e23.tar.zst gsoc2013-epiphany-78fc10863afdecaee83eaa18c9766fffd5dd9e23.zip |
Remove an useless check.
2004-02-27 Marco Pesenti Gritti <marco@gnome.org>
* embed/mozilla/MozDownload.cpp:
* embed/mozilla/MozDownload.h:
Remove an useless check.
* lib/ephy-state.c: (ephy_state_window_set_size):
Make sure window is never bigger than screen.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-state.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/ephy-state.c b/lib/ephy-state.c index 9c2abb7d0..d0bf34d31 100644 --- a/lib/ephy-state.c +++ b/lib/ephy-state.c @@ -130,8 +130,16 @@ ephy_state_window_set_size (GtkWidget *window, EphyNode *node) if (size) { - gtk_window_set_default_size - (GTK_WINDOW (window), width, height); + GdkScreen *screen; + int screen_width, screen_height; + + screen = gdk_screen_get_default (); + screen_width = gdk_screen_get_width (screen); + screen_height = gdk_screen_get_height (screen); + + gtk_window_set_default_size (GTK_WINDOW (window), + MIN (width, screen_width), + MIN (height, screen_height)); } if (maximize) |