a11y: Cosmetics

No need to have two code paths doing the same.
This commit is contained in:
Matthias Clasen 2023-06-19 10:09:17 -04:00
parent 1f029229dc
commit e1c9f50d26

View File

@ -121,10 +121,7 @@ gtk_at_context_set_property (GObject *gobject,
switch (prop_id)
{
case PROP_ACCESSIBLE_ROLE:
if (!self->realized)
self->accessible_role = g_value_get_enum (value);
else
g_critical ("The accessible role cannot be set on a realized AT context");
gtk_at_context_set_accessible_role (self, g_value_get_enum (value));
break;
case PROP_ACCESSIBLE: