Method

GtkSwitchset_state

since: 3.14

Declaration [src]

void
gtk_switch_set_state (
  GtkSwitch* sw,
  gboolean state
)

Description [src]

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.

Available since: 3.14

Sets propertyGtk.Switch:state

Parameters

state

Type: gboolean

The new state.