diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-10-21 14:40:34 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-10-21 14:40:34 -0400 |
commit | 48bb9200d913607cf0556c55c7da968bdb36024a (patch) | |
tree | e1cd45219c4d12b116b49b8587c89958a930e288 /gtk/gtkaccessible.c | |
parent | d7794bf60825e1e2d9c32b491195bd58b93adf52 (diff) | |
download | gtk+-48bb9200d913607cf0556c55c7da968bdb36024a.tar.gz |
a11y: Treat PRESENTATION like NONE
This is what ARIA tells us to do. NONE is just another
name for PRESENTATION.
Diffstat (limited to 'gtk/gtkaccessible.c')
-rw-r--r-- | gtk/gtkaccessible.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c index bef2ced14e..a98bd90ae2 100644 --- a/gtk/gtkaccessible.c +++ b/gtk/gtkaccessible.c @@ -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; |