GtkStack: Don't mix code and declarations
This commit is contained in:
@ -2104,10 +2104,12 @@ gtk_stack_size_allocate (GtkWidget *widget,
|
|||||||
if (priv->visible_child)
|
if (priv->visible_child)
|
||||||
{
|
{
|
||||||
int min, nat;
|
int min, nat;
|
||||||
|
GtkAlign valign;
|
||||||
|
|
||||||
gtk_widget_get_preferred_height_for_width (priv->visible_child->widget,
|
gtk_widget_get_preferred_height_for_width (priv->visible_child->widget,
|
||||||
allocation->width,
|
allocation->width,
|
||||||
&min, &nat);
|
&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);
|
child_allocation.height = MAX (nat, allocation->height);
|
||||||
if (valign == GTK_ALIGN_END &&
|
if (valign == GTK_ALIGN_END &&
|
||||||
child_allocation.height > allocation->height)
|
child_allocation.height > allocation->height)
|
||||||
|
Reference in New Issue
Block a user