summaryrefslogtreecommitdiff
path: root/gtk/gtkstack.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-07-01 19:15:01 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:15 -0400
commitc8ca43ad5148ca380b3525ea1da0c5673e9d9c60 (patch)
treeec166e8585e131810d893a2bbcffcd7bfd27cc0f /gtk/gtkstack.c
parent2c958df789ae890f17e8609ccacf585f92069168 (diff)
downloadgtk+-c8ca43ad5148ca380b3525ea1da0c5673e9d9c60.tar.gz
stack: Fix under transitions
make sure we initialize both width and height with proper values.
Diffstat (limited to 'gtk/gtkstack.c')
-rw-r--r--gtk/gtkstack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index baa56d4bb6..b1d515a9a3 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -1840,6 +1840,9 @@ gtk_stack_snapshot_under (GtkWidget *widget,
gtk_widget_get_content_size (widget, &widget_width, &widget_height);
x = y = 0;
+ width = widget_width;
+ height = widget_height;
+
pos_x = pos_y = 0;
switch (priv->active_transition_type)