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:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user