summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-10-19 20:20:34 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-10-20 06:14:57 -0400
commitecf5c5ff6eadb8cf17245ba3619806f304b4f7c4 (patch)
tree345425807c22792c070625883864ba32761257c3 /demos
parentb5d3bebae33e08ae388d28ed12649a85eea5a3f3 (diff)
downloadgtk+-ecf5c5ff6eadb8cf17245ba3619806f304b4f7c4.tar.gz
Don't use g_list_next in gtk3-demo
We generally just use ->next directly.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/toolpalette.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/toolpalette.c b/demos/gtk-demo/toolpalette.c
index f8d95732a7..8470eb8b29 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;