[gtk+] window: Invert check that was wrong



commit 7962a4b716161e90f905ab1ed76af6cc49ce8d45
Author: Benjamin Otte <otte redhat com>
Date:   Fri Apr 29 03:27:02 2011 +0200

    window: Invert check that was wrong

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 5c6496c..5b9be4e 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4960,7 +4960,7 @@ gtk_window_realize (GtkWidget *widget)
       allocation.y = 0;
 
       gtk_window_guess_default_size (window, &allocation.width, &allocation.height);
-      if (allocation.width || allocation.height)
+      if (allocation.width == 0 || allocation.height == 0)
 	{
 	  /* non-empty window */
 	  allocation.width = 200;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]