a11y: Treat PRESENTATION like NONE

This is what ARIA tells us to do. NONE is just another
name for PRESENTATION.
This commit is contained in:
Matthias Clasen
2020-10-21 14:40:34 -04:00
parent d7794bf608
commit 48bb9200d9
2 changed files with 3 additions and 2 deletions

View File

@@ -746,7 +746,8 @@ gtk_accessible_should_present (GtkAccessible *self)
!gtk_widget_get_visible (GTK_WIDGET (self)))
return FALSE;
if (gtk_accessible_get_accessible_role (self) == GTK_ACCESSIBLE_ROLE_NONE)
if (gtk_accessible_get_accessible_role (self) == GTK_ACCESSIBLE_ROLE_NONE ||
gtk_accessible_get_accessible_role (self) == GTK_ACCESSIBLE_ROLE_PRESENTATION)
return FALSE;
return TRUE;

View File

@@ -1202,7 +1202,7 @@ typedef enum {
* @GTK_ACCESSIBLE_ROLE_NONE: An element that is not represented to accessibility technologies.
* @GTK_ACCESSIBLE_ROLE_NOTE: Unused
* @GTK_ACCESSIBLE_ROLE_OPTION: Unused
* @GTK_ACCESSIBLE_ROLE_PRESENTATION: Unused
* @GTK_ACCESSIBLE_ROLE_PRESENTATION: An element that is not represented to accessibility technologies.
* @GTK_ACCESSIBLE_ROLE_PROGRESS_BAR: An element that displays the progress
* status for tasks that take a long time.
* @GTK_ACCESSIBLE_ROLE_RADIO: A checkable input in a group of radio roles,