forked from AuroraMiddleware/gtk
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);
|
self->slider = gtk_gizmo_new ("slider", NULL, NULL, NULL, NULL, NULL, NULL);
|
||||||
gtk_widget_set_parent (self->slider, GTK_WIDGET (self));
|
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