Gtk.Widget.prototype.set_visible
function set_visible(visible:Boolean):void { // Gjs wrapper for gtk_widget_set_visible() }
Sets the visibility state of widget. Note that setting this to true doesn't mean the widget is actually viewable, see Gtk.Widget.prototype.get_visible.
This function simply calls Gtk.show or Gtk.Widget.prototype.hide but is nicer to use when the visibility of the widget depends on some condition.
Since 2.18
- visible
whether the widget should be shown or not