[gtk+/native-layout] Fixed another caching bug in extended layout



commit 8ae5e012256de2a1c68b6bf080c5299f405a9784
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Apr 19 21:37:44 2010 -0400

    Fixed another caching bug in extended layout
    
    Was confusing width/height REQUEST_NEEDED flags, this caused
    the volumebutton test to not re-request the height properly
    when changing orientations.

 gtk/gtkextendedlayout.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkextendedlayout.c b/gtk/gtkextendedlayout.c
index b95c5b7..d63e265 100644
--- a/gtk/gtkextendedlayout.c
+++ b/gtk/gtkextendedlayout.c
@@ -174,7 +174,7 @@ compute_size_for_orientation (GtkExtendedLayout *layout,
     {
       cached_size = &cache->desired_heights[0];
       
-      if (GTK_WIDGET_WIDTH_REQUEST_NEEDED (layout) == FALSE)
+      if (GTK_WIDGET_HEIGHT_REQUEST_NEEDED (layout) == FALSE)
 	found_in_cache = get_cached_desired_size (for_size, cache->desired_heights, &cached_size);
       else
 	memset (cache->desired_heights, 0x0, N_CACHED_SIZES * sizeof (DesiredSize));



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