[gtk+] Fixed bug in GtkSizeRequest code where the cache is not reset properly



commit d4021d7a1b88d8c649029285ee8f0968d8992243
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Apr 4 13:58:05 2011 +0900

    Fixed bug in GtkSizeRequest code where the cache is not reset properly
    
    Fixes this bug https://bugzilla.gnome.org/show_bug.cgi?id=646500

 gtk/gtksizerequest.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksizerequest.c b/gtk/gtksizerequest.c
index 4b379cc..ef3983c 100644
--- a/gtk/gtksizerequest.c
+++ b/gtk/gtksizerequest.c
@@ -143,7 +143,8 @@ init_cache (GtkWidget        *widget)
 
   if (_gtk_widget_get_width_request_needed (widget))
     clear_cache (cache, GTK_SIZE_GROUP_HORIZONTAL);
-  else if (_gtk_widget_get_height_request_needed (widget))
+  
+  if (_gtk_widget_get_height_request_needed (widget))
     clear_cache (cache, GTK_SIZE_GROUP_VERTICAL);
 
   return cache;



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