Ignore:
Timestamp:
Oct 10, 2009, 7:16:30 PM (16 years ago)
Author:
lpino
Message:
  • Small sync
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/MenuItem.java

    r192 r204  
    435435        menu = null;
    436436        super.releaseWidget ();
    437 //      if (accelerator != 0) {
    438 //              parent.destroyAcceleratorTable ();
    439 //      }
     437        if (accelerator != 0) {
     438                parent.destroyAcceleratorTable ();
     439        }
    440440        accelerator = 0;
    441441        Decorations shell = parent.parent;
     
    555555        short sState = (short) OS.WinSendMsg(hMenu, OS.MM_QUERYITEMATTR,  OS.MPFROM2SHORT((short)id, (short)OS.FALSE), OS.MIA_DISABLED);
    556556//              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);
    558558        sState &= ~(OS.MIA_DISABLED);
    559559        if (!enabled) sState |= (OS.MIA_DISABLED);
Note: See TracChangeset for help on using the changeset viewer.