[gtk+] Don't use g_slist_next in gtktreemodel.c
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use g_slist_next in gtktreemodel.c
- Date: Tue, 20 Oct 2015 10:17:30 +0000 (UTC)
commit 05717fe2dfa929c1c1d04f572b0b35e0dc7d85e7
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 19 20:41:29 2015 -0400
Don't use g_slist_next in gtktreemodel.c
We generally use ->next directly.
gtk/gtktreemodel.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c
index 258363f..bb8daed 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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]