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.
This commit is contained in:
Tristan Van Berkom
2010-04-19 21:37:44 -04:00
parent de4a8f8ddc
commit 8ae5e01225

View File

@@ -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));