diff --git a/gtk/a11y/gtkatspicomponent.c b/gtk/a11y/gtkatspicomponent.c index 30bb676c50..722ca16cec 100644 --- a/gtk/a11y/gtkatspicomponent.c +++ b/gtk/a11y/gtkatspicomponent.c @@ -50,7 +50,8 @@ translate_coordinates_to_widget (GtkWidget *widget, switch (coordtype) { case ATSPI_COORD_TYPE_SCREEN: - g_warning ("Screen coordinates not supported, reported positions will be wrong"); + *xo = 0; + *yo = 0; return; case ATSPI_COORD_TYPE_WINDOW: @@ -86,7 +87,6 @@ translate_coordinates_from_widget (GtkWidget *widget, switch (coordtype) { case ATSPI_COORD_TYPE_SCREEN: - g_warning ("Screen coordinates not supported, reported positions will be wrong"); *xo = 0; *yo = 0; return; 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)