Commit 292e0c26 authored by Timm Bäder's avatar Timm Bäder 👎

stack: Remove some code duplication

parent 301652de
......@@ -2268,13 +2268,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))
......
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