mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
Simplify _gdk_display_get_last_pointer_grab using g_list_last
This commit is contained in:
parent
52ca2f29cc
commit
ca06216f20
@ -749,15 +749,12 @@ _gdk_display_get_last_pointer_grab (GdkDisplay *display)
|
||||
{
|
||||
GList *l;
|
||||
|
||||
l = display->pointer_grabs;
|
||||
l = g_list_last (display->pointer_grabs);
|
||||
|
||||
if (l == NULL)
|
||||
return NULL;
|
||||
|
||||
while (l->next != NULL)
|
||||
l = l->next;
|
||||
|
||||
return (GdkPointerGrabInfo *)l->data;
|
||||
else
|
||||
return (GdkPointerGrabInfo *)l->data;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user