Changeset 204 for trunk/src/plugins
- Timestamp:
- Oct 10, 2009, 7:16:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/MenuItem.java
r192 r204 435 435 menu = null; 436 436 super.releaseWidget (); 437 //if (accelerator != 0) {438 //parent.destroyAcceleratorTable ();439 //}437 if (accelerator != 0) { 438 parent.destroyAcceleratorTable (); 439 } 440 440 accelerator = 0; 441 441 Decorations shell = parent.parent; … … 555 555 short sState = (short) OS.WinSendMsg(hMenu, OS.MM_QUERYITEMATTR, OS.MPFROM2SHORT((short)id, (short)OS.FALSE), OS.MIA_DISABLED); 556 556 // boolean success = OS.GetMenuItemInfo (hMenu, id, false, info); 557 // if (!success) error (SWT.ERROR_CANNOT_SET_ENABLED);557 // if ((boolean)sState) error (SWT.ERROR_CANNOT_SET_ENABLED); 558 558 sState &= ~(OS.MIA_DISABLED); 559 559 if (!enabled) sState |= (OS.MIA_DISABLED);
Note:
See TracChangeset
for help on using the changeset viewer.