[gtk+/wip/baedert/gtkimageview: 293/294] stack: Remove some code duplication
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 293/294] stack: Remove some code duplication
- Date: Sat, 30 Apr 2016 07:19:30 +0000 (UTC)
commit 44ab47f3f1bcb0dadc5e21f0bc3b4b3335afbdbe
Author: Timm Bäder <mail baedert org>
Date: Fri Feb 26 21:58:22 2016 +0100
stack: Remove some code duplication
gtk/gtkstack.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index f7d8da5..e0dba06 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -2272,13 +2272,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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]