Merge branch 'a11y-defeat' into 'main'

Give up on warning ATs into submission

See merge request GNOME/gtk!6121
This commit is contained in:
Matthias Clasen 2023-06-19 21:06:13 +00:00
commit 722bea2943
2 changed files with 2 additions and 5 deletions

View File

@ -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;

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)