[gtk+] revealer: Pass correct size to child hfw function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] revealer: Pass correct size to child hfw function
- Date: Sun, 23 Feb 2014 14:43:33 +0000 (UTC)
commit 9add8e261f8d3e4c99e342e757659ef74f0cf16e
Author: Benjamin Otte <otte redhat com>
Date: Sun Feb 23 14:57:44 2014 +0100
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c
index 511caa8..f37c24b 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]