[gtk+/gtk-3-0] Fixed warning catch in gtk_window_compute_hints().



commit cc837f531bb61fbc10c95cca065b1fd078f96d45
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun Apr 3 18:09:22 2011 +0900

    Fixed warning catch in gtk_window_compute_hints().

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 385ae9c..43f4e18 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7168,7 +7168,7 @@ gtk_window_compute_hints (GtkWindow   *window,
       extra_width = requisition.width - TEMPORARY_SIZE;
       extra_height = requisition.height - TEMPORARY_SIZE;
 
-      if (extra_width < 0 || extra_width < 0)
+      if (extra_width < 0 || extra_height < 0)
 	{
 	  g_warning("Toplevel size doesn't seem to directly depend on the "
 		    "size of the geometry widget from gtk_window_set_geometry_hints(). "



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