diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-10-03 14:55:53 -0400 |
---|---|---|
committer | Alexander Kurtakov <akurtako@redhat.com> | 2012-10-04 14:53:08 +0300 |
commit | c159a9553ef0699a68dfd8ee6cae8e56f4b4ccb4 (patch) | |
tree | b10eac79ff016219c25e1c2b8f609b109bc15887 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java | |
parent | a025bf9445abd24cfb0807a29038b2face3f0f8a (diff) | |
download | eclipse.platform.swt-c159a9553ef0699a68dfd8ee6cae8e56f4b4ccb4.tar.gz eclipse.platform.swt-c159a9553ef0699a68dfd8ee6cae8e56f4b4ccb4.tar.xz eclipse.platform.swt-c159a9553ef0699a68dfd8ee6cae8e56f4b4ccb4.zip |
Replace gdk_window_get_pointer with gdk_window_get_device_position GTK3
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java index 0e632a4603..c97bb431cc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java @@ -203,7 +203,7 @@ Point adjustMoveCursor () { * actual location of the pointer after it has been moved. */ int [] actualX = new int [1], actualY = new int [1], state = new int [1]; - OS.gdk_window_get_pointer (window, actualX, actualY, state); + gdk_window_get_device_position (window, actualX, actualY, state); return new Point (actualX [0], actualY [0]); } @@ -236,7 +236,7 @@ Point adjustResizeCursor () { * actual location of the pointer after it has been moved. */ int [] actualX = new int [1], actualY = new int [1], state = new int [1]; - OS.gdk_window_get_pointer (window, actualX, actualY, state); + gdk_window_get_device_position (window, actualX, actualY, state); return new Point (actualX [0], actualY [0]); } @@ -523,7 +523,7 @@ long /*int*/ gtk_motion_notify_event (long /*int*/ widget, long /*int*/ eventPtr long /*int*/ gtk_mouse (int eventType, long /*int*/ widget, long /*int*/ eventPtr) { int [] newX = new int [1], newY = new int [1]; - OS.gdk_window_get_pointer (window, newX, newY, null); + gdk_window_get_device_position (window, newX, newY, null); if (oldX != newX [0] || oldY != newY [0]) { Rectangle [] oldRectangles = rectangles; Rectangle [] rectsToErase = new Rectangle [rectangles.length]; @@ -672,7 +672,7 @@ public boolean open () { update (); drawRectangles (rectangles); int [] oldX = new int [1], oldY = new int [1], state = new int [1]; - OS.gdk_window_get_pointer (window, oldX, oldY, state); + gdk_window_get_device_position (window, oldX, oldY, state); /* * if exactly one of UP/DOWN is specified as a style then set the cursor |