From 9add8e261f8d3e4c99e342e757659ef74f0cf16e Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 23 Feb 2014 14:57:44 +0100 Subject: [PATCH] revealer: Pass correct size to child hfw function The refactoring in b9e37f8d2d4d14d3cb23f56a795fcdd2e6128e88 broke this. https://bugzilla.gnome.org/show_bug.cgi?id=724999 --- gtk/gtkrevealer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c index 511caa8966..f37c24bf13 100644 --- a/gtk/gtkrevealer.c +++ b/gtk/gtkrevealer.c @@ -312,10 +312,10 @@ gtk_revealer_get_child_allocation (GtkRevealer *revealer, transition = effective_transition (revealer); if (transition == GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT || transition == GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT) - gtk_widget_get_preferred_width_for_height (child, child_allocation->height, NULL, + gtk_widget_get_preferred_width_for_height (child, allocation->height, NULL, &child_allocation->width); else - gtk_widget_get_preferred_height_for_width (child, child_allocation->width, NULL, + gtk_widget_get_preferred_height_for_width (child, allocation->width, NULL, &child_allocation->height); }