a11y: Remove the unrealized warning

This warning triggers quite a lot when opening
a window while orca is running, which clearly
shows that what it warns about happens in
practice. But fixing it is reentry hell, and
not a battle I'm up for today.
This commit is contained in:
Matthias Clasen 2023-06-19 16:41:39 -04:00
parent c2fda63b0d
commit db97a35dc7

View File

@ -1229,8 +1229,6 @@ gtk_at_context_get_text_accumulate (GtkATContext *self,
{
GtkAccessibleValue *value = NULL;
g_warn_if_fail (self->realized);
/* Step 2.A */
if (!is_ref)
{
@ -1369,7 +1367,6 @@ gtk_at_context_get_text (GtkATContext *self,
GtkATContext *parent = NULL;
g_return_val_if_fail (GTK_IS_AT_CONTEXT (self), NULL);
g_warn_if_fail (self->realized);
/* Step 1 */
if (gtk_accessible_role_get_naming (self->accessible_role) == GTK_ACCESSIBLE_NAME_PROHIBITED)