[gtk+] Don't use g_slist_next in gtktextbufferrichtext.c
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use g_slist_next in gtktextbufferrichtext.c
- Date: Tue, 20 Oct 2015 10:17:05 +0000 (UTC)
commit 5dd78f74e0cb8a878fcd010f300a6c94b0da94bd
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 19 20:36:27 2015 -0400
Don't use g_slist_next in gtktextbufferrichtext.c
We generally use ->next directly.
gtk/gtktextbufferrichtext.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtktextbufferrichtext.c b/gtk/gtktextbufferrichtext.c
index 0132ea9..7b6fc78 100644
--- a/gtk/gtktextbufferrichtext.c
+++ b/gtk/gtktextbufferrichtext.c
@@ -335,7 +335,7 @@ gtk_text_buffer_deserialize_set_can_create_tags (GtkTextBuffer *buffer,
formats = g_object_get_qdata (G_OBJECT (buffer), deserialize_quark ());
- for (list = formats; list; list = g_list_next (list))
+ for (list = formats; list; list = list->next)
{
GtkRichTextFormat *fmt = list->data;
@@ -378,7 +378,7 @@ gtk_text_buffer_deserialize_get_can_create_tags (GtkTextBuffer *buffer,
formats = g_object_get_qdata (G_OBJECT (buffer), deserialize_quark ());
- for (list = formats; list; list = g_list_next (list))
+ for (list = formats; list; list = list->next)
{
GtkRichTextFormat *fmt = list->data;
@@ -497,7 +497,7 @@ gtk_text_buffer_serialize (GtkTextBuffer *register_buffer,
formats = g_object_get_qdata (G_OBJECT (register_buffer),
serialize_quark ());
- for (list = formats; list; list = g_list_next (list))
+ for (list = formats; list; list = list->next)
{
GtkRichTextFormat *fmt = list->data;
@@ -583,7 +583,7 @@ gtk_text_buffer_deserialize (GtkTextBuffer *register_buffer,
{
GtkTextTag *tag = list->data;
- list = g_slist_next (list);
+ list = list->next;
/* If a tag begins at the insertion point, ignore it
* because it doesn't affect the pasted text
@@ -602,7 +602,7 @@ gtk_text_buffer_deserialize (GtkTextBuffer *register_buffer,
right_start = gtk_text_buffer_create_mark (content_buffer,
NULL, iter, FALSE);
- for (list = split_tags; list; list = g_slist_next (list))
+ for (list = split_tags; list; list = list->next)
{
GtkTextTag *tag = list->data;
GtkTextIter *backward_toggle = gtk_text_iter_copy (iter);
@@ -664,12 +664,12 @@ gtk_text_buffer_deserialize (GtkTextBuffer *register_buffer,
&right_s, right_start);
for (list = split_tags,
- left_list = left_start_list,
- right_list = right_end_list;
+ left_list = left_start_list,
+ right_list = right_end_list;
list && left_list && right_list;
- list = g_slist_next (list),
- left_list = g_slist_next (left_list),
- right_list = g_slist_next (right_list))
+ list = list->next,
+ left_list = left_list->next,
+ right_list = right_list->next)
{
GtkTextTag *tag = list->data;
GtkTextMark *left_start = left_list->data;
@@ -745,7 +745,7 @@ unregister_format (GList *formats,
{
GList *list;
- for (list = formats; list; list = g_list_next (list))
+ for (list = formats; list; list = list->next)
{
GtkRichTextFormat *format = list->data;
@@ -771,7 +771,7 @@ get_formats (GList *formats,
*n_formats = g_list_length (formats);
array = g_new0 (GdkAtom, *n_formats);
- for (list = formats, i = 0; list; list = g_list_next (list), i++)
+ for (list = formats, i = 0; list; list = list->next, i++)
{
GtkRichTextFormat *format = list->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]