[gtk+/wip/csd-for-review] Avoid deprecated api



commit ee100f16c3d09a9dc3d4c256a1a18a8b1183533f
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 10 22:01:34 2013 -0400

    Avoid deprecated api

 gtk/gtkwindow.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 5618503..b3edb36 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6882,7 +6882,9 @@ gtk_window_enter_notify_event (GtkWidget        *widget,
       GdkWindow *gdk_window;
 
       gdk_window = gtk_widget_get_window (widget);
-      gdk_window_get_pointer (gdk_window, &x, &y, NULL);
+      gdk_window_get_device_position (gdk_window,
+                                      gdk_event_get_device ((GdkEvent*)event),
+                                      &x, &y, NULL);
       update_cursor_at_position (widget, x, y);
     }
 
@@ -6908,7 +6910,9 @@ gtk_window_motion_notify_event (GtkWidget       *widget,
       GdkWindow *gdk_window;
 
       gdk_window = gtk_widget_get_window (widget);
-      gdk_window_get_pointer (gdk_window, &x, &y, NULL);
+      gdk_window_get_device_position (gdk_window,
+                                      gdk_event_get_device ((GdkEvent*)event),
+                                      &x, &y, NULL);
       update_cursor_at_position (widget, x, y);
     }
 


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