Don't use g_slist_next in gdk
We generally just use ->next directly.
This commit is contained in:
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user