Don't use g_slist_next in gdk

We generally just use ->next directly.
This commit is contained in:
Matthias Clasen
2015-10-19 20:28:06 -04:00
parent ecf5c5ff6e
commit ffa98cbfa5
2 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ _gdk_event_queue_find_first (GdkDisplay *display)
return tmp_list; return tmp_list;
} }
tmp_list = g_list_next (tmp_list); tmp_list = tmp_list->next;
} }
return NULL; return NULL;

View File

@ -7712,8 +7712,8 @@ find_common_ancestor (GdkWindow *win1,
while (list1 && list2 && (list1->data == list2->data)) while (list1 && list2 && (list1->data == list2->data))
{ {
tmp = list1->data; tmp = list1->data;
list1 = g_list_next (list1); list1 = list1->next;
list2 = g_list_next (list2); list2 = list2->next;
} }
g_list_free (path1); g_list_free (path1);
g_list_free (path2); g_list_free (path2);
@ -8083,7 +8083,7 @@ _gdk_synthesize_crossing_events (GdkDisplay *display,
while (list) while (list)
{ {
win = list->data; win = list->data;
list = g_list_next (list); list = list->next;
if (list) if (list)
next = list->data; next = list->data;
else else