summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2012-02-02 15:15:45 -0500
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-02-02 15:15:45 -0500
commitcfd758f6bc3105a48b70306887167291ec4ae15f (patch)
treeee4f580c604ae24a2ef414e52f8a4bc3a9af5a2a /bundles
parent2637cc7f6185a738ceb62d54200cd76fbfbf66dd (diff)
downloadeclipse.platform.swt-cfd758f6bc3105a48b70306887167291ec4ae15f.tar.gz
eclipse.platform.swt-cfd758f6bc3105a48b70306887167291ec4ae15f.tar.xz
eclipse.platform.swt-cfd758f6bc3105a48b70306887167291ec4ae15f.zip
Bug 362133 - tray item show highlight image not working
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java10
1 files changed, 8 insertions, 2 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 e09b7514d6..d7e3bd8039 100644
--- 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
@@ -490,7 +490,10 @@ void mouseDown(int /*long*/ id, int /*long*/ sel, int /*long*/ theEvent) {
highlight = true;
updateImage();
view.setNeedsDisplay(true);
- if (shouldShowMenu(nsEvent)) displayMenu();
+ if (shouldShowMenu(nsEvent)) {
+ displayMenu();
+ updateImage ();
+ }
}
void mouseDragged(int /*long*/ id, int /*long*/ sel, int /*long*/ theEvent) {
@@ -502,7 +505,10 @@ void mouseDragged(int /*long*/ id, int /*long*/ sel, int /*long*/ theEvent) {
updateImage ();
}
view.setNeedsDisplay(true);
- if (shouldShowMenu(nsEvent)) displayMenu();
+ if (shouldShowMenu(nsEvent)) {
+ displayMenu();
+ updateImage ();
+ }
}
void mouseUp(int /*long*/ id, int /*long*/ sel, int /*long*/ theEvent) {