Gtk.Action.prototype.set_sensitive

function set_sensitive(sensitive:Boolean):void {
    // Gjs wrapper for gtk_action_set_sensitive()
}

Sets the ::sensitive property of the action to sensitive. Note that this doesn't necessarily mean effective sensitivity. See Gtk.Action.prototype.is_sensitive for that.

Since 2.6

sensitive

true to make the action sensitive