[gtk+] window: Make comparison be the right direction
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] window: Make comparison be the right direction
- Date: Wed, 27 Apr 2011 13:29:44 +0000 (UTC)
commit 1763b3a0b503521ef7196f6c032c5c0b9166451e
Author: Benjamin Otte <otte redhat com>
Date: Wed Apr 27 00:49:00 2011 +0200
window: Make comparison be the right direction
Messed something up there...
gtk/gtkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 3ac8628..5c6496c 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4869,7 +4869,7 @@ gtk_window_guess_default_size (GtkWindow *window,
*width = gdk_screen_get_width (screen);
*height = gdk_screen_get_height (screen);
- if (*width < *height)
+ if (*width >= *height)
{
/* landscape */
*width = MIN (*width, MAX_DEFAULT_WINDOW_WIDTH);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]