From: Matthias Clasen Date: Mon, 19 Jun 2023 20:41:39 +0000 (-0400) Subject: a11y: Remove the unrealized warning X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~121^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=db97a35dc7ac5d18b36be786fe4ea4188eb3e50c;p=gtk4.git 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. --- diff --git a/gtk/gtkatcontext.c b/gtk/gtkatcontext.c index cf2c374992..c862a9a81f 100644 --- a/gtk/gtkatcontext.c +++ b/gtk/gtkatcontext.c @@ -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)