From 2ef4be21c834aadf21a3c95c5bcba0a515752435 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 27 Jul 2020 19:57:13 -0400 Subject: [PATCH] switch: Initialize accessible state The checked state defaults to undefined, so we need to set it to the desired false state. --- gtk/gtkswitch.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } /**