Switch.setState

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.

class Switch
void
setState
(
bool state
)

Parameters

state bool

the new state

Meta

Since

3.14