a11y: Map GTK_ACCESSIBLE_ROLE_ALERT_DIALOG to ATSPI_ROLE_ALERT
authorLukáš Tyrychtr <ltyrycht@redhat.com>
Thu, 6 Apr 2023 11:55:16 +0000 (13:55 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Apr 2023 07:04:12 +0000 (09:04 +0200)
By doing this, alert dialogs will be read automatically, or at least
they should be, because a screen reader know that these are special.

gtk/a11y/gtkatspiutils.c

index 957ca2974346dd1a713955561ce443813003bc1b..985594ad951716c0d306ec68962653d4c7287d9c 100644 (file)
@@ -43,7 +43,7 @@ gtk_accessible_role_to_atspi_role (GtkAccessibleRole role)
       return ATSPI_ROLE_ALERT;
 
     case GTK_ACCESSIBLE_ROLE_ALERT_DIALOG:
-      return ATSPI_ROLE_DIALOG;
+      return ATSPI_ROLE_ALERT;
 
     case GTK_ACCESSIBLE_ROLE_BANNER:
       break;