Switch.setState

void setState(bool state)

Sets the underlying state of the #GtkSwitch.

Normally, this is the same as #GtkSwitch:active, unless the switch is set up for delayed state changes. This function is typically called from a #GtkSwitch::state-set signal handler.

See #GtkSwitch::state-set for details.

Parameters

statethe new state