[gtk+] Don't use g_slist_next in gtktextchild.c
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use g_slist_next in gtktextchild.c
- Date: Tue, 20 Oct 2015 10:17:10 +0000 (UTC)
commit 060948d8065686a5aa4dacaafbae9726de4e4139
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 19 20:38:38 2015 -0400
Don't use g_slist_next in gtktextchild.c
We generally use ->next directly.
gtk/gtktextchild.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktextchild.c b/gtk/gtktextchild.c
index 3c075ea..2ff7de2 100644
--- a/gtk/gtktextchild.c
+++ b/gtk/gtktextchild.c
@@ -182,7 +182,7 @@ child_segment_delete_func (GtkTextLineSegment *seg,
gtk_widget_destroy (child);
- tmp_list = g_slist_next (tmp_list);
+ tmp_list = tmp_list->next;
}
/* On removal from the widget's parents (GtkTextView),
@@ -397,7 +397,7 @@ gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor)
{
list = g_list_prepend (list, iter->data);
- iter = g_slist_next (iter);
+ iter = iter->next;
}
/* Order is not relevant, so we don't need to reverse the list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]