diff options
author | Benjamin Otte <otte@redhat.com> | 2014-02-23 14:57:44 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-02-23 15:40:46 +0100 |
commit | 9add8e261f8d3e4c99e342e757659ef74f0cf16e (patch) | |
tree | 5765c7e7b36226c68db76735652efc223f29379c /gtk/gtkrevealer.c | |
parent | 10fa786dfa718188243935c32deedfa8bec1f208 (diff) | |
download | gtk+-9add8e261f8d3e4c99e342e757659ef74f0cf16e.tar.gz |
revealer: Pass correct size to child hfw function
The refactoring in b9e37f8d2d4d14d3cb23f56a795fcdd2e6128e88 broke this.
https://bugzilla.gnome.org/show_bug.cgi?id=724999
Diffstat (limited to 'gtk/gtkrevealer.c')
-rw-r--r-- | gtk/gtkrevealer.c | 4 |
1 files 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); } |