[gnome-calendar/search-improvements] year-view: use g_list_foreach
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/search-improvements] year-view: use g_list_foreach
- Date: Thu, 8 Jan 2015 18:17:27 +0000 (UTC)
commit 5e89d00a84011c9785f8070107ceea1252b542e7
Author: Erick PĂ©rez Castellanos <erick red gmail com>
Date: Wed Jan 7 13:08:51 2015 -0500
year-view: use g_list_foreach
src/gcal-year-view.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 42505cc..749ec28 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -438,8 +438,7 @@ gcal_year_view_size_allocate (GtkWidget *widget,
}
g_list_free (widgets);
- for (aux = l2; aux != NULL; aux = g_list_next (aux))
- gtk_widget_destroy ((GtkWidget*) aux->data);
+ g_list_foreach (l2, (GFunc) gtk_widget_destroy, NULL);
g_list_free (l2);
/* clean overflow information */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]