diff options
author | Grant Gayed | 2005-01-25 19:50:00 +0000 |
---|---|---|
committer | Grant Gayed | 2005-01-25 19:50:00 +0000 |
commit | 56616a91572155f935ae9722ec5d473002c6d782 (patch) | |
tree | b4619bc828b1d57ac668492a33154b385dc6b3a1 | |
parent | 655d296d3a37c6ce873fdcd2c19aa7901ea31bf6 (diff) | |
download | eclipse.platform.swt-56616a91572155f935ae9722ec5d473002c6d782.tar.gz eclipse.platform.swt-56616a91572155f935ae9722ec5d473002c6d782.tar.xz eclipse.platform.swt-56616a91572155f935ae9722ec5d473002c6d782.zip |
*** empty log message ***
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MenuItem.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MenuItem.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MenuItem.java index c5aefb73f2..8146955bbc 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MenuItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MenuItem.java @@ -884,7 +884,7 @@ boolean translateAccelerator (int accel, boolean doit) { } int XmNactivateCallback (int w, int client_data, int call_data) { if ((style & SWT.CASCADE) != 0) { - postEvent (SWT.Arm); + sendEvent (SWT.Arm); } if (!isEnabled ()) return 0; XmAnyCallbackStruct struct = new XmAnyCallbackStruct (); @@ -907,11 +907,17 @@ int XmNactivateCallback (int w, int client_data, int call_data) { return 0; } int XmNarmCallback (int w, int client_data, int call_data) { - postEvent (SWT.Arm); + sendEvent (SWT.Arm); return 0; } int XmNcascadingCallback (int w, int client_data, int call_data) { - postEvent (SWT.Arm); + /* + * Bug in Motif. When XmNlabelString is set as a result of + * an XmNcascadingCallback after the callback has returned, + * Motif measures the new string properly but does not draw + * it. The fix is to send rather than post the SWT.Arm event. + */ + sendEvent (SWT.Arm); return 0; } int XmNhelpCallback (int w, int client_data, int call_data) { |