summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
index 9dceedf1b2..e90bf32227 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java
@@ -462,10 +462,20 @@ public boolean isEnabled () {
}
int processMouseDown (int callData, int arg1, int int2) {
+ /*
+ * FIXME. The following line of code is wrong:
+ * the pointer position is relative to item, not the toolbar.
+ * The fix requires patching the GdkEvent, and will be in when we have the new PI.
+ */
parent.processMouseDown (callData, arg1, int2);
return 0;
}
int processMouseUp (int callData, int arg1, int int2) {
+ /*
+ * FIXME. The following line of code is wrong:
+ * the pointer position is relative to item, not the toolbar.
+ * The fix requires patching the GdkEvent, and will be in when we have the new PI.
+ */
parent.processMouseUp (callData, arg1, int2);
return 0;
}