gtkrevealer: fix preferred width calculation

A typo which was using minimum_width for natural_width and viceversa.
This commit is contained in:
Carlos Soriano 2015-07-07 22:47:10 +02:00
parent d51e8a73cb
commit 0f935a0483

View File

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