[gtk+/xi2-for-master] Fix incomplete index->index_ rename



commit eb74850ffdce1bbdfeb79f311ceea028bdb96a1d
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 24 14:19:41 2010 -0400

    Fix incomplete index->index_ rename

 gdk/gdkdevice.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index ecb88de..74115b7 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -603,7 +603,7 @@ gdk_device_get_key (GdkDevice       *device,
                     GdkModifierType *modifiers)
 {
   g_return_val_if_fail (GDK_IS_DEVICE (device), FALSE);
-  g_return_val_if_fail (index < device->num_keys, FALSE);
+  g_return_val_if_fail (index_ < device->num_keys, FALSE);
 
   if (!device->keys[index_].keyval &&
       !device->keys[index_].modifiers)
@@ -657,7 +657,7 @@ gdk_device_get_axis_use (GdkDevice *device,
                          guint      index_)
 {
   g_return_val_if_fail (GDK_IS_DEVICE (device), GDK_AXIS_IGNORE);
-  g_return_val_if_fail (index < device->num_axes, GDK_AXIS_IGNORE);
+  g_return_val_if_fail (index_ < device->num_axes, GDK_AXIS_IGNORE);
 
   return device->axes[index_].use;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]