gtkhidingbox: don't nest unneeded loop

parent 12dcce48
......@@ -250,12 +250,8 @@ gtk_hiding_box_size_allocate (GtkWidget *widget,
/* Hide the overflowing children even if they have visible=TRUE */
if (i >= n_visible_children)
{
while (child)
{
gtk_widget_set_child_visible (child->data, FALSE);
child = child->next;
}
break;
gtk_widget_set_child_visible (child->data, FALSE);
continue;
}
child_allocation.x = x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment