gtkrevealer: fix preferred width calculation

A typo which was using minimum_width for natural_width and viceversa.
parent d51e8a73
......@@ -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 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment