These functions rely on self->accessible_role
being set, and that is only the case for realized
contexts.
In practice, this is not a problem. Contexts are
realized before ATs can get their names or descriptions,
and the inspector realizes contexts too, nowadays.
The only place where this caused a hickup is the
testsuite.
{
GtkAccessibleValue *value = NULL;
+ g_warn_if_fail (self->realized);
+
/* Step 2.A */
if (!is_ref)
{
{
GtkATContext *parent = NULL;
+ g_warn_if_fail (self->realized);
+
/* Step 1 */
if (gtk_accessible_role_get_naming (self->accessible_role) == GTK_ACCESSIBLE_NAME_PROHIBITED)
return g_strdup ("");