From 0f935a04835d3239726610168e202c5110921090 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Tue, 7 Jul 2015 22:47:10 +0200 Subject: [PATCH] gtkrevealer: fix preferred width calculation A typo which was using minimum_width for natural_width and viceversa. --- gtk/gtkrevealer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c index 43894f747c..20ff0dcc63 100644 --- a/gtk/gtkrevealer.c +++ b/gtk/gtkrevealer.c @@ -865,8 +865,8 @@ set_width_with_paddings (GtkRevealer *revealer, gtk_revealer_get_padding (revealer, &padding); horizontal_padding = padding.left + padding.right; - minimum_width = preferred_natural_width + horizontal_padding; - natural_width = preferred_minimum_width + horizontal_padding; + minimum_width = preferred_minimum_width + horizontal_padding; + natural_width = preferred_natural_width + horizontal_padding; transition = effective_transition (revealer); if (transition == GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT ||