diff options
author | Silenio Quarti <silenio> | 2002-04-26 14:38:16 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2002-04-26 14:38:16 +0000 |
commit | 6acf1851f3c6b366f64d9299cba476715a98fb74 (patch) | |
tree | ebbbabd32d55637590a2beba0c3208848da1510e /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java | |
parent | eb69d8ee300770e6dab41b174fcbe32bc6ff3664 (diff) | |
download | eclipse.platform.swt-6acf1851f3c6b366f64d9299cba476715a98fb74.tar.gz eclipse.platform.swt-6acf1851f3c6b366f64d9299cba476715a98fb74.tar.xz eclipse.platform.swt-6acf1851f3c6b366f64d9299cba476715a98fb74.zip |
PI cleanup
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java index 1c5184cc05..25b8e62a5d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Sash.java @@ -151,7 +151,9 @@ void drawBand (int x, int y, int width, int height) { int processMouseDown (int callData, int int1, int int2) { super.processMouseDown (callData, int1, int2); - int button = OS.gdk_event_button_get_button (callData); + GdkEventButton gdkEvent = new GdkEventButton (); + OS.memmove (gdkEvent, callData, GdkEventButton.sizeof); + int button = gdkEvent.button; if (button != 1) return 0; double[] px = new double [1], py = new double [1]; OS.gdk_event_get_coords (callData, px, py); @@ -228,7 +230,9 @@ int processMouseMove (int callData, int int1, int int2) { int processMouseUp (int callData, int int1, int int2) { super.processMouseUp (callData, int1, int2); - int button = OS.gdk_event_button_get_button(callData); + GdkEventButton gdkEvent = new GdkEventButton (); + OS.memmove (gdkEvent, callData, GdkEventButton.sizeof); + int button = gdkEvent.button; if (button != 1) return 0; if (!dragging) return 0; dragging = false; |