summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-06-06 19:14:18 +0000
committerSilenio Quarti <silenio>2008-06-06 19:14:18 +0000
commit44db0957d87cb491a85384855623a3380a72614e (patch)
tree276a126120d4b86272f5e47ef3a9d0c89dc17a5f /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java
parent6752d439d76030429e87bce5575ca5fc06a4993b (diff)
downloadeclipse.platform.swt-44db0957d87cb491a85384855623a3380a72614e.tar.gz
eclipse.platform.swt-44db0957d87cb491a85384855623a3380a72614e.tar.xz
eclipse.platform.swt-44db0957d87cb491a85384855623a3380a72614e.zip
initial z-order / cleanup calls to JNIGetObject / background of composites
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java
index 216e69eaff..7fb731659b 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java
@@ -413,7 +413,8 @@ void showMenu () {
_setToolTipText (toolTipText);
}
-void mouseDown(int event) {
+void mouseDown(int id, int sel, int event) {
+ super.mouseDown(id, sel, event);
NSEvent nsEvent = new NSEvent(event);
int mask = nsEvent.modifierFlags() & OS.NSDeviceIndependentModifierFlagsMask;
if (mask == OS.NSControlKeyMask) {
@@ -426,12 +427,14 @@ void mouseDown(int event) {
}
}
-void mouseUp(int event) {
+void mouseUp(int id, int sel, int theEvent) {
+ super.mouseUp(id, sel, theEvent);
highlight = false;
view.setNeedsDisplay(true);
}
-void rightMouseDown(int event) {
+void rightMouseDown(int id, int sel, int theEvent) {
+ super.rightMouseDown(id, sel, theEvent);
showMenu();
}