[gtk+] gdk: return 0, not NULL from gdk_device_get_n_axes()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: return 0, not NULL from gdk_device_get_n_axes()
- Date: Tue, 21 Dec 2010 14:17:14 +0000 (UTC)
commit 13f18567e98e3c26e125ee458ca318fef6acb281
Author: Michael Natterer <mitch gimp org>
Date: Tue Dec 21 15:16:35 2010 +0100
gdk: return 0, not NULL from gdk_device_get_n_axes()
gdk/gdkdevice.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index 8e6feec..f7269f3 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]