Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2019-05-15 09:17:56 -0400
committerAndrey Loskutov2019-05-15 09:49:48 -0400
commit688392fa96012ce6d288e39b9d3e1052dc907c9a (patch)
tree8aa8d906c2582ac98208d5909774dbe238358335
parent8b8534bd4e8b9d7e275fe3026fa6ea8f5cdc4e16 (diff)
downloadeclipse.platform.swt-688392fa96012ce6d288e39b9d3e1052dc907c9a.tar.gz
eclipse.platform.swt-688392fa96012ce6d288e39b9d3e1052dc907c9a.tar.xz
eclipse.platform.swt-688392fa96012ce6d288e39b9d3e1052dc907c9a.zip
Bug 547320 - [GTK 3.22][Tree] Cannot drag and drop multiple selected
items Fixed logic to update the "result" value to the state before the patch for bug 546493. Change-Id: I7c18277507c235388f89f885f6e3b8a67d55f3f2 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
index 9e4d812c77..03da5c05ef 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -3586,7 +3586,9 @@ long gtk_button_press_event (long widget, long event, boolean sendMouseDown) {
} else {
mouseEventSent = !sendMouseEvent (SWT.MouseDown, eventButton[0], display.clickCount, 0, false, eventTime, eventRX[0], eventRY[0], false, eventState[0]);
}
- result = mouseEventSent ? 1 : 0;
+ if (mouseEventSent) {
+ result = 1;
+ }
}
if (isDisposed ()) return 1;
/*

Back to the top