From f5b76a1f56eb2096d2762a7148b4969d039b7649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 26 Feb 2016 21:58:22 +0100 Subject: stack: Remove some code duplication --- gtk/gtkstack.c | 8 ++------ 1 file 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)) -- cgit v1.2.1