a11y: Remove the unrealized warning
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jun 2023 20:41:39 +0000 (16:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jun 2023 20:41:39 +0000 (16:41 -0400)
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.

gtk/gtkatcontext.c

index cf2c374992e46fccef231c1bc8f040482b0198bc..c862a9a81f6ec0a49e29b9cbb0e6d608a53bd596 100644 (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)