[gtk/ebassi/for-master: 3/15] a11y: Ignore more structural roles when computing labels




commit 14f56d7bce90549b353092607fed1b9e779bd1c8
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Nov 12 14:38:01 2020 +0000

    a11y: Ignore more structural roles when computing labels
    
    These roles should not have a fallback name when explicitly unlabelled.

 gtk/gtkatcontext.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gtk/gtkatcontext.c b/gtk/gtkatcontext.c
index 8c49c27118..5866a2f279 100644
--- a/gtk/gtkatcontext.c
+++ b/gtk/gtkatcontext.c
@@ -925,7 +925,11 @@ is_structural_role (GtkAccessibleRole role)
     case GTK_ACCESSIBLE_ROLE_FORM:
     case GTK_ACCESSIBLE_ROLE_GROUP:
     case GTK_ACCESSIBLE_ROLE_GENERIC:
+    case GTK_ACCESSIBLE_ROLE_LANDMARK:
+    case GTK_ACCESSIBLE_ROLE_LIST_ITEM:
     case GTK_ACCESSIBLE_ROLE_REGION:
+    case GTK_ACCESSIBLE_ROLE_SEARCH:
+    case GTK_ACCESSIBLE_ROLE_SEPARATOR:
       return TRUE;
 
     default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]