set_state


Description:

public void set_state (bool state)

Sets the underlying state of the `GtkSwitch`.

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

See [[email protected]:GtkSwitch:state-set] for details.

Parameters:

this

a `GtkSwitch`

state

the new state




2022 vala-language.org