forked from AuroraMiddleware/gtk
gtkrevealer: fix preferred width calculation
A typo which was using minimum_width for natural_width and viceversa.
This commit is contained in:
parent
d51e8a73cb
commit
0f935a0483
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user