code: func (i *MenuItem) SetEnabled(enabled bool) (err error) {
  	if err = i.isActionable(); err != nil {
  		return
  	}
  	i.o.Enabled = PtrBool(enabled)
  	_, err = synchronousEvent(i.c, i, i.w, Event{Name: EventNameMenuItemCmdSetEnabled, TargetID: i.id, MenuItemOptions: &MenuItemOptions{Enabled: i.o.Enabled}}, EventNameMenuItemEventEnabledSet)
  	return
  }
docs: // SetEnabled sets the enabled attribute