Function MenuItem.updateActionState

call to update state for action (if action is assigned for widget)

void updateActionState(
  Widget w
);