[gtk+/wip/csoriano/pathbar-bin-view-window: 12/31] gtkhidingbox: don't nest unneeded loop
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csoriano/pathbar-bin-view-window: 12/31] gtkhidingbox: don't nest unneeded loop
- Date: Thu, 2 Jun 2016 15:47:27 +0000 (UTC)
commit 0aadd736dd1d29826527174bd9a0cacb4d3bbd27
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Nov 4 16:31:41 2015 +0100
gtkhidingbox: don't nest unneeded loop
gtk/gtkhidingbox.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkhidingbox.c b/gtk/gtkhidingbox.c
index 1a62d17..7f04665 100644
--- a/gtk/gtkhidingbox.c
+++ b/gtk/gtkhidingbox.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]