[gtk+] Don't use g_list_next in gtk3-demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use g_list_next in gtk3-demo
- Date: Tue, 20 Oct 2015 10:16:29 +0000 (UTC)
commit ecf5c5ff6eadb8cf17245ba3619806f304b4f7c4
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 19 20:20:34 2015 -0400
Don't use g_list_next in gtk3-demo
We generally just use ->next directly.
demos/gtk-demo/toolpalette.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/toolpalette.c b/demos/gtk-demo/toolpalette.c
index f8d9573..8470eb8 100644
--- a/demos/gtk-demo/toolpalette.c
+++ b/demos/gtk-demo/toolpalette.c
@@ -645,7 +645,7 @@ load_icon_items (GtkToolPalette *palette)
icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (palette)));
contexts = gtk_icon_theme_list_contexts (icon_theme);
- for (l = contexts; l; l = g_list_next (l))
+ for (l = contexts; l; l = l->next)
{
gchar *context = l->data;
GList *icon_names;
@@ -663,7 +663,7 @@ load_icon_items (GtkToolPalette *palette)
icon_names = gtk_icon_theme_list_icons (icon_theme, context);
icon_names = g_list_sort (icon_names, (GCompareFunc) strcmp);
- for (ll = icon_names; ll; ll = g_list_next (ll))
+ for (ll = icon_names; ll; ll = ll->next)
{
GtkToolItem *item;
gchar *id = ll->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]