[gtk+/xi2: 748/1239] Correct/complete axis labels for axes known to Gdk.



commit d8345762762d67f190a801ed99ed21b013522157
Author: Carlos Garnacho <carlos lanedo com>
Date:   Thu Aug 13 18:10:59 2009 +0200

    Correct/complete axis labels for axes known to Gdk.

 gdk/x11/gdkdevicemanager-xi2.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index c26f593..fcbc8f5 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -155,8 +155,12 @@ translate_valuator_class (GdkDisplay          *display,
 
   if (!initialized)
     {
-      label_atoms [GDK_AXIS_X] = gdk_x11_get_xatom_by_name_for_display (display, "Rel X");
-      label_atoms [GDK_AXIS_Y] = gdk_x11_get_xatom_by_name_for_display (display, "Rel Y");
+      label_atoms [GDK_AXIS_X] = gdk_x11_get_xatom_by_name_for_display (display, "Abs X");
+      label_atoms [GDK_AXIS_Y] = gdk_x11_get_xatom_by_name_for_display (display, "Abs Y");
+      label_atoms [GDK_AXIS_PRESSURE] = gdk_x11_get_xatom_by_name_for_display (display, "Abs Pressure");
+      label_atoms [GDK_AXIS_XTILT] = gdk_x11_get_xatom_by_name_for_display (display, "Abs Tilt X");
+      label_atoms [GDK_AXIS_YTILT] = gdk_x11_get_xatom_by_name_for_display (display, "Abs Tilt Y");
+      label_atoms [GDK_AXIS_WHEEL] = gdk_x11_get_xatom_by_name_for_display (display, "Abs Wheel");
       initialized = TRUE;
     }
 
@@ -169,7 +173,6 @@ translate_valuator_class (GdkDisplay          *display,
         }
     }
 
-  g_warning ("Unhandled axis");
   gdk_device_xi2_add_axis (device_xi2, GDK_AXIS_IGNORE);
 }
 



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