[gtk/ebassi/for-master: 4/20] a11y: Add role exception for GtkScrolledWindow
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/for-master: 4/20] a11y: Add role exception for GtkScrolledWindow
- Date: Thu, 12 Nov 2020 21:46:16 +0000 (UTC)
commit 429c7fc039d3ac4a164ddc43ae45997c52477de7
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Nov 12 14:37:21 2020 +0000
a11y: Add role exception for GtkScrolledWindow
ARIA does not have a "scroll pane" role, but AT-SPI does.
gtk/a11y/gtkatspiutils.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gtk/a11y/gtkatspiutils.c b/gtk/a11y/gtkatspiutils.c
index 87b1887fe8..9210d3754e 100644
--- a/gtk/a11y/gtkatspiutils.c
+++ b/gtk/a11y/gtkatspiutils.c
@@ -21,8 +21,10 @@
#include "config.h"
#include "gtkatspiutilsprivate.h"
+
#include "gtkenums.h"
#include "gtkpasswordentry.h"
+#include "gtkscrolledwindow.h"
/*< private >
* gtk_accessible_role_to_atspi_role:
@@ -298,6 +300,10 @@ gtk_atspi_role_for_context (GtkATContext *context)
if (GTK_IS_PASSWORD_ENTRY (accessible))
return ATSPI_ROLE_PASSWORD_TEXT;
+ /* ARIA does not have a "scroll area" role */
+ if (GTK_IS_SCROLLED_WINDOW (accessible))
+ return ATSPI_ROLE_SCROLL_PANE;
+
return gtk_accessible_role_to_atspi_role (role);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]