diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-07-27 19:57:13 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-07-27 21:18:10 -0400 |
commit | 2ef4be21c834aadf21a3c95c5bcba0a515752435 (patch) | |
tree | 1da7e475686826f5fd7dac5f15c9fce839469950 | |
parent | 2cbaa568b5628d8d279b66df70becfe6f6dbb3ef (diff) | |
download | gtk+-2ef4be21c834aadf21a3c95c5bcba0a515752435.tar.gz |
switch: Initialize accessible state
The checked state defaults to undefined, so we need
to set it to the desired false state.
-rw-r--r-- | gtk/gtkswitch.c | 4 |
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); } /** |