mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
GdkDevice: Fix an inverted assertion
gdk_device_list_slave_devices only makes sense to call on master devices, yet its g_return_if_fail check made it reject such devices. Pointed out by monty.
This commit is contained in:
parent
88c861d062
commit
116b5e560f
@ -939,7 +939,7 @@ GList *
|
||||
gdk_device_list_slave_devices (GdkDevice *device)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_DEVICE (device), NULL);
|
||||
g_return_val_if_fail (gdk_device_get_device_type (device) != GDK_DEVICE_TYPE_MASTER, NULL);
|
||||
g_return_val_if_fail (gdk_device_get_device_type (device) == GDK_DEVICE_TYPE_MASTER, NULL);
|
||||
|
||||
return g_list_copy (device->slaves);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user