From ffa98cbfa59374fb9d20835cf462c22ae0563848 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 19 Oct 2015 20:28:06 -0400 Subject: [PATCH] Don't use g_slist_next in gdk We generally just use ->next directly. --- gdk/gdkevents.c | 2 +- gdk/gdkwindow.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 4052d54bd8..ed649130fc 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -108,7 +108,7 @@ _gdk_event_queue_find_first (GdkDisplay *display) return tmp_list; } - tmp_list = g_list_next (tmp_list); + tmp_list = tmp_list->next; } return NULL; diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 75d1034b7a..9206ead671 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -7712,8 +7712,8 @@ find_common_ancestor (GdkWindow *win1, while (list1 && list2 && (list1->data == list2->data)) { tmp = list1->data; - list1 = g_list_next (list1); - list2 = g_list_next (list2); + list1 = list1->next; + list2 = list2->next; } g_list_free (path1); g_list_free (path2); @@ -8083,7 +8083,7 @@ _gdk_synthesize_crossing_events (GdkDisplay *display, while (list) { win = list->data; - list = g_list_next (list); + list = list->next; if (list) next = list->data; else