diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-11 17:49:38 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-11 18:33:15 +0000 |
commit | 033791b37469a59340b21a6c69cd37f2b7ce886b (patch) | |
tree | e4bd3c84b6615f5540efb6371053006277595142 /gtk/a11y | |
parent | 95ee5ff4242f1808edb37f555f402722c0aa98ef (diff) | |
download | gtk+-033791b37469a59340b21a6c69cd37f2b7ce886b.tar.gz |
a11y: Translate ARIA windows to AT-SPI frames
For backward compatibility with GTK3.
Diffstat (limited to 'gtk/a11y')
-rw-r--r-- | gtk/a11y/gtkatspiutils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/a11y/gtkatspiutils.c b/gtk/a11y/gtkatspiutils.c index a448ea67b4..87b1887fe8 100644 --- a/gtk/a11y/gtkatspiutils.c +++ b/gtk/a11y/gtkatspiutils.c @@ -269,7 +269,7 @@ gtk_accessible_role_to_atspi_role (GtkAccessibleRole role) return ATSPI_ROLE_FILLER; case GTK_ACCESSIBLE_ROLE_WINDOW: - return ATSPI_ROLE_WINDOW; + return ATSPI_ROLE_FRAME; default: break; @@ -294,6 +294,7 @@ gtk_atspi_role_for_context (GtkATContext *context) GtkAccessible *accessible = gtk_at_context_get_accessible (context); GtkAccessibleRole role = gtk_at_context_get_accessible_role (context); + /* ARIA does not have a "password entry" role, so we need to fudge it here */ if (GTK_IS_PASSWORD_ENTRY (accessible)) return ATSPI_ROLE_PASSWORD_TEXT; |