summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtkstack.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 89ddf58117..83c9da483e 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -2285,13 +2285,9 @@ gtk_stack_allocate (GtkCssGadget *gadget,
else if (valign == GTK_ALIGN_CENTER &&
child_allocation.height > allocation->height)
child_allocation.y -= (nat - allocation->height) / 2;
-
- gtk_widget_size_allocate (priv->visible_child->widget, &child_allocation);
- }
- else
- {
- gtk_widget_size_allocate (priv->visible_child->widget, &child_allocation);
}
+
+ gtk_widget_size_allocate (priv->visible_child->widget, &child_allocation);
}
if (gtk_widget_get_realized (widget))