Method

GtkSwitchset_active

since: 3.0

Declaration [src]

void
gtk_switch_set_active (
  GtkSwitch* sw,
  gboolean is_active
)

Description [src]

Changes the state of sw to the desired one.

Available since: 3.0

Sets propertyGtk.Switch:active

Parameters

is_active

Type: gboolean

TRUE if sw should be active, and FALSE otherwise.