Commit 13f18567 authored by Michael Natterer's avatar Michael Natterer
Browse files

gdk: return 0, not NULL from gdk_device_get_n_axes()

parent ac0353e0
......@@ -972,7 +972,7 @@ gint
gdk_device_get_n_axes (GdkDevice *device)
g_return_val_if_fail (GDK_IS_DEVICE (device), 0);
g_return_val_if_fail (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD, NULL);
g_return_val_if_fail (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD, 0);
return device->priv->axes->len;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment