summaryrefslogtreecommitdiff
path: root/gtk/gtkrevealer.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-07-07 22:47:10 +0200
committerCarlos Soriano <csoriano@gnome.org>2015-07-07 22:49:45 +0200
commit0f935a04835d3239726610168e202c5110921090 (patch)
tree69e66a5e3bdffa5648ea48989ebcb62b084f2e0a /gtk/gtkrevealer.c
parentd51e8a73cb513e0df337d577daefb9f1fa3832f7 (diff)
downloadgtk+-0f935a04835d3239726610168e202c5110921090.tar.gz
gtkrevealer: fix preferred width calculation
A typo which was using minimum_width for natural_width and viceversa.
Diffstat (limited to 'gtk/gtkrevealer.c')
-rw-r--r--gtk/gtkrevealer.c4
1 files 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 ||