summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtkswitch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index f4cc9f3615..a178672595 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -659,6 +659,10 @@ gtk_switch_init (GtkSwitch *self)
self->slider = gtk_gizmo_new ("slider", NULL, NULL, NULL, NULL, NULL, NULL);
gtk_widget_set_parent (self->slider, GTK_WIDGET (self));
+
+ gtk_accessible_update_state (GTK_ACCESSIBLE (self),
+ GTK_ACCESSIBLE_STATE_CHECKED, FALSE,
+ -1);
}
/**