a11y: Update the name-prohibited list
authorMatthias Clasen <mclasen@redhat.com>
Sun, 18 Jun 2023 19:28:22 +0000 (15:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jun 2023 15:17:47 +0000 (11:17 -0400)
ARIA has the time role in this as well.

It does not matter in practice since we don't
have a widget with this role, but lets match
the specs.

gtk/gtkatcontext.c

index 5ced08a481fb008da03c359678085096501be48c..848a4514e352f87bc61bf4235705143f1cda4ace 100644 (file)
@@ -1177,11 +1177,13 @@ gtk_at_context_get_description_accumulate (GtkATContext *self,
     }
 }
 
+/* See ARIA 5.2.8.6 */
 static GtkAccessibleRole name_forbidden[] = {
   GTK_ACCESSIBLE_ROLE_CAPTION,
   GTK_ACCESSIBLE_ROLE_GENERIC,
-  GTK_ACCESSIBLE_ROLE_PRESENTATION,
   GTK_ACCESSIBLE_ROLE_NONE,
+  GTK_ACCESSIBLE_ROLE_PRESENTATION,
+  GTK_ACCESSIBLE_ROLE_TIME,
 };
 
 static gboolean