instead
Action.setSensitive
void setSensitive(bool sensitive)Sets the :sensitive property of the action to sensitive. Note that this doesn’t necessarily mean effective sensitivity. See [gtk.action.Action.isSensitive] for that.
Parameters
sensitive | true to make the action sensitive |
Deprecated
Use [gio.simple_action.SimpleAction.setEnabled] on a #GSimpleAction