[gtk+] Don't use g_slist_next in gtktextbtree.c
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use g_slist_next in gtktextbtree.c
- Date: Tue, 20 Oct 2015 10:16:04 +0000 (UTC)
commit a0379d54244a1d09286e3c870281a77e76079c0f
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 19 19:10:42 2015 -0400
Don't use g_slist_next in gtktextbtree.c
We generally access ->next directly.
gtk/gtktextbtree.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c
index 2528730..d7bacff 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]