[gtk+/rendering-cleanup-next: 57/153] 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: 57/153] notebook: Use a for loop when iterating over a list
- Date: Sat, 11 Sep 2010 04:56:13 +0000 (UTC)
commit 5dac7b2ed4c5330fdb4ddb4ad386ce937a4452ac
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 ad07318..22413ed 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -2287,12 +2287,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]