mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Propagate accessible-role to backend
We want to allow setting the accessible role as long as the context is unrealized, so we need to propagate the new role.
This commit is contained in:
parent
bb24b350ac
commit
828a067b2b
@ -1734,6 +1734,8 @@ gtk_widget_set_property (GObject *object,
|
||||
if (priv->at_context == NULL || !gtk_at_context_is_realized (priv->at_context))
|
||||
{
|
||||
priv->accessible_role = g_value_get_enum (value);
|
||||
if (priv->at_context)
|
||||
g_object_set (priv->at_context, "accessible-role", priv->accessible_role, NULL);
|
||||
g_object_notify_by_pspec (object, pspec);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user