summaryrefslogtreecommitdiff
path: root/gtk/gtktextbtree.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-10-19 19:10:42 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-10-20 06:14:57 -0400
commita0379d54244a1d09286e3c870281a77e76079c0f (patch)
tree442b32f7f46f260a00edb8ae58003528cc5af1be /gtk/gtktextbtree.c
parentd0e30994d0be914766a42662b06213c2b44f695e (diff)
downloadgtk+-a0379d54244a1d09286e3c870281a77e76079c0f.tar.gz
Don't use g_slist_next in gtktextbtree.c
We generally access ->next directly.
Diffstat (limited to 'gtk/gtktextbtree.c')
-rw-r--r--gtk/gtktextbtree.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index 2528730b59..d7bacff585 100644
--- a/gtk/gtktextbtree.c
+++ b/gtk/gtktextbtree.c
@@ -1539,7 +1539,7 @@ _gtk_text_btree_find_line_top (GtkTextBTree *tree,
ran out of nodes */
}
- iter = g_slist_next (iter);
+ iter = iter->next;
}
g_assert_not_reached (); /* we return when we find the target line */
@@ -4601,7 +4601,7 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
goto found;
}
- tmp = g_slist_next (tmp);
+ tmp = tmp->next;
}
g_slist_free (child_nodes);
@@ -4676,7 +4676,7 @@ _gtk_text_line_previous_could_contain_tag (GtkTextLine *line,
break;
}
- iter = g_slist_next (iter);
+ iter = iter->next;
}
g_slist_free (child_nodes);
@@ -6015,7 +6015,7 @@ gtk_text_btree_get_existing_tag_info (GtkTextBTree *tree,
if (info->tag == tag)
return info;
- list = g_slist_next (list);
+ list = list->next;
}
return NULL;
@@ -6091,7 +6091,7 @@ gtk_text_btree_remove_tag_info (GtkTextBTree *tree,
}
prev = list;
- list = g_slist_next (list);
+ list = list->next;
}
}
@@ -7146,7 +7146,7 @@ _gtk_text_btree_spew (GtkTextBTree *tree)
printf (" tag '%s': root at %p, toggle count %d\n",
info->tag->priv->name, info->tag_root, info->toggle_count);
- list = g_slist_next (list);
+ list = list->next;
}
if (tree->tag_infos == NULL)