Gtk.Action.prototype.set_visible

function set_visible(visible:Boolean):void {
    // Gjs wrapper for gtk_action_set_visible()
}

Sets the ::visible property of the action to visible. Note that this doesn't necessarily mean effective visibility. See Gtk.Action.prototype.is_visible for that.

Since 2.6

visible

true to make the action visible