[gtk+] GtkStack: Don't mix code and declarations
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkStack: Don't mix code and declarations
- Date: Sat, 30 May 2015 13:45:29 +0000 (UTC)
commit f5b245ff04ca65bbabc7fb8367cc75e9a4848840
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 30 09:43:56 2015 -0400
GtkStack: Don't mix code and declarations
gtk/gtkstack.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 0a88a4f..7752689 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -2104,10 +2104,12 @@ gtk_stack_size_allocate (GtkWidget *widget,
if (priv->visible_child)
{
int min, nat;
+ GtkAlign valign;
+
gtk_widget_get_preferred_height_for_width (priv->visible_child->widget,
allocation->width,
&min, &nat);
- GtkAlign valign = gtk_widget_get_valign (priv->visible_child->widget);
+ valign = gtk_widget_get_valign (priv->visible_child->widget);
child_allocation.height = MAX (nat, allocation->height);
if (valign == GTK_ALIGN_END &&
child_allocation.height > allocation->height)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]