Gtk.ToggleButton.prototype.set_active

function set_active(is_active:Boolean):void {
    // Gjs wrapper for gtk_toggle_button_set_active()
}

Sets the status of the toggle button. Set to true if you want the GtkToggleButton to be 'pressed in', and false to raise it. This action causes the Gtk.toggled signal and the Gtk.Button::clicked signal to be emitted.

is_active

true or false.