[gtk+/xi2: 1224/1239] GdkDeviceXI: Add empty implementations for set_window_cursor() and warp().



commit 44465cf9e6692cc53a157824a4085b0310c81665
Author: Carlos Garnacho <carlos gnome org>
Date:   Sat Sep 26 15:42:42 2009 +0200

    GdkDeviceXI: Add empty implementations for set_window_cursor() and warp().
    
    XInput doesn't offer any API for these.

 gdk/x11/gdkdevice-xi.c |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkdevice-xi.c b/gdk/x11/gdkdevice-xi.c
index d09f3d7..2c88cf5 100644
--- a/gdk/x11/gdkdevice-xi.c
+++ b/gdk/x11/gdkdevice-xi.c
@@ -45,6 +45,13 @@ static void gdk_device_xi_get_state       (GdkDevice       *device,
                                            GdkWindow       *window,
                                            gdouble         *axes,
                                            GdkModifierType *mask);
+static void gdk_device_xi_set_window_cursor (GdkDevice *device,
+                                             GdkWindow *window,
+                                             GdkCursor *cursor);
+static void gdk_device_xi_warp              (GdkDevice *device,
+                                             GdkScreen *screen,
+                                             gint       x,
+                                             gint       y);
 
 
 G_DEFINE_TYPE (GdkDeviceXI, gdk_device_xi, GDK_TYPE_DEVICE)
@@ -66,6 +73,8 @@ gdk_device_xi_class_init (GdkDeviceXIClass *klass)
 
   device_class->get_history = gdk_device_xi_get_history;
   device_class->get_state = gdk_device_xi_get_state;
+  device_class->set_window_cursor = gdk_device_xi_set_window_cursor;
+  device_class->warp = gdk_device_xi_warp;
 
   g_object_class_install_property (object_class,
 				   PROP_DEVICE_ID,
@@ -271,3 +280,18 @@ gdk_device_xi_get_state (GdkDevice       *device,
 
   XFreeDeviceState (state);
 }
+
+static void
+gdk_device_xi_set_window_cursor (GdkDevice *device,
+                                 GdkWindow *window,
+                                 GdkCursor *cursor)
+{
+}
+
+static void
+gdk_device_xi_warp (GdkDevice *device,
+                    GdkScreen *screen,
+                    gint       x,
+                    gint       y)
+{
+}



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