summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-02-26 21:58:22 +0100
committerMatthias Clasen <mclasen@redhat.com>2016-05-19 12:10:07 -0400
commitf5b76a1f56eb2096d2762a7148b4969d039b7649 (patch)
tree4522cf752ee39a93205ea3e7303cb99b3965a0b8
parent8601c0eccdfff9d93633a7f626da66de586be1d0 (diff)
downloadgtk+-f5b76a1f56eb2096d2762a7148b4969d039b7649.tar.gz
stack: Remove some code duplication
-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))