[gtk+] x11: Don't use deprecated function



commit 14d35d5c0909b04d1a1b06e9de5692698e5fddf3
Author: Benjamin Otte <otte redhat com>
Date:   Fri Oct 28 07:08:29 2011 -0700

    x11: Don't use deprecated function
    
    Use the replacement instead.

 gdk/x11/gdkdevice-core-x11.c |    2 +-
 gdk/x11/gdkdevice-xi.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdkdevice-core-x11.c b/gdk/x11/gdkdevice-core-x11.c
index 938aad7..d5b66c3 100644
--- a/gdk/x11/gdkdevice-core-x11.c
+++ b/gdk/x11/gdkdevice-core-x11.c
@@ -196,7 +196,7 @@ gdk_x11_device_core_get_state (GdkDevice       *device,
 {
   gint x_int, y_int;
 
-  gdk_window_get_pointer (window, &x_int, &y_int, mask);
+  gdk_window_get_device_position (window, device, &x_int, &y_int, mask);
 
   if (axes)
     {
diff --git a/gdk/x11/gdkdevice-xi.c b/gdk/x11/gdkdevice-xi.c
index 16ef3bd..8b16815 100644
--- a/gdk/x11/gdkdevice-xi.c
+++ b/gdk/x11/gdkdevice-xi.c
@@ -292,7 +292,7 @@ gdk_x11_device_xi_get_state (GdkDevice       *device,
   gint i;
 
   if (mask)
-    gdk_window_get_pointer (window, NULL, NULL, mask);
+    gdk_window_get_device_position (window, device, NULL, NULL, mask);
 
   device_xi = GDK_X11_DEVICE_XI (device);
   state = XQueryDeviceState (GDK_WINDOW_XDISPLAY (window),



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