From 05717fe2dfa929c1c1d04f572b0b35e0dc7d85e7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 19 Oct 2015 20:41:29 -0400 Subject: [PATCH] Don't use g_slist_next in gtktreemodel.c We generally use ->next directly. --- gtk/gtktreemodel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index 258363f5c3..bb8daedc2e 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -2073,7 +2073,7 @@ release_row_references (gpointer data) /* we don't free the reference, users are responsible for that. */ - tmp_list = g_slist_next (tmp_list); + tmp_list = tmp_list->next; } g_slist_free (refs->list); @@ -2128,7 +2128,7 @@ gtk_tree_row_ref_inserted (RowRefList *refs, reference->path->indices[path->depth-1] += 1; } done: - tmp_list = g_slist_next (tmp_list); + tmp_list = tmp_list->next; } } @@ -2187,7 +2187,7 @@ gtk_tree_row_ref_deleted (RowRefList *refs, } next: - tmp_list = g_slist_next (tmp_list); + tmp_list = tmp_list->next; } } @@ -2236,7 +2236,7 @@ gtk_tree_row_ref_reordered (RowRefList *refs, } } - tmp_list = g_slist_next (tmp_list); + tmp_list = tmp_list->next; } }