Gtk.Widget.prototype.set_state
function set_state(state:Gtk.StateType):void {
// Gjs wrapper for gtk_widget_set_state()
}This function is for use in widget implementations. Sets the state of a widget (insensitive, prelighted, etc.) Usually you should set the state using wrapper functions such as Gtk.Widget.prototype.set_sensitive.
- state
new state for widget