sizegroup: Refactor function

Get rid of continues in loop. This allows doing more complex things in
future commits.
This commit is contained in:
Benjamin Otte 2015-09-18 03:49:09 +02:00
parent 0721d964e4
commit 1f2e21ab9a

View File

@ -239,25 +239,17 @@ queue_resize_on_widget (GtkWidget *widget,
while (parent)
{
GSList *widget_groups;
GHashTableIter iter;
gpointer current;
if (widget == parent)
real_queue_resize (widget);
if (widget == parent && !check_siblings)
if (!check_siblings || _gtk_widget_get_sizegroups (parent) == NULL)
{
parent = _gtk_widget_get_parent (parent);
continue;
check_siblings = TRUE;
}
widget_groups = _gtk_widget_get_sizegroups (parent);
if (!widget_groups)
else
{
parent = _gtk_widget_get_parent (parent);
continue;
}
GHashTableIter iter;
gpointer current;
g_hash_table_remove_all (widgets);
g_hash_table_remove_all (groups);
@ -277,6 +269,7 @@ queue_resize_on_widget (GtkWidget *widget,
else
queue_resize_on_widget (current, FALSE);
}
}
parent = _gtk_widget_get_parent (parent);
}