Don't use g_slist_next in gtktextchild.c

We generally use ->next directly.
This commit is contained in:
Matthias Clasen 2015-10-19 20:38:38 -04:00
parent 5dd78f74e0
commit 060948d806

View File

@ -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