mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
gdk: Add an arg check to gdk_device_get_timestamp
Pointed out by Emmanuele Bassi.
This commit is contained in:
parent
7849590a82
commit
08f68cce40
@ -1407,5 +1407,7 @@ gdk_device_set_timestamp (GdkDevice *device,
|
||||
guint32
|
||||
gdk_device_get_timestamp (GdkDevice *device)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_DEVICE (device), GDK_CURRENT_TIME);
|
||||
|
||||
return device->timestamp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user