[gtk+/rendering-cleanup-next: 58/155] notebook: Use a for loop when iterating over a list
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next: 58/155] notebook: Use a for loop when iterating over a list
- Date: Wed, 15 Sep 2010 03:01:47 +0000 (UTC)
commit 901424b326abe33621e69fdbde48fbbfaec6ded4
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 6 23:15:56 2010 +0200
notebook: Use a for loop when iterating over a list
gtk/gtknotebook.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 3c305ec..6adf5b9 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -2290,12 +2290,9 @@ gtk_notebook_expose (GtkWidget *widget,
GtkNotebookPage *page;
GList *pages;
- pages = priv->children;
-
- while (pages)
- {
+ for (pages = priv->children; pages; pages = pages->next)
+ {
page = GTK_NOTEBOOK_PAGE (pages);
- pages = pages->next;
if (gtk_widget_get_window (page->tab_label) == event->window &&
gtk_widget_is_drawable (page->tab_label))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]