mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
switch: Initialize accessible state
The checked state defaults to undefined, so we need to set it to the desired false state.
This commit is contained in:
parent
2cbaa568b5
commit
2ef4be21c8
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user