summaryrefslogtreecommitdiff
path: root/gtk/gtkaccessible.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-21 14:40:34 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-21 14:40:34 -0400
commit48bb9200d913607cf0556c55c7da968bdb36024a (patch)
treee1cd45219c4d12b116b49b8587c89958a930e288 /gtk/gtkaccessible.c
parentd7794bf60825e1e2d9c32b491195bd58b93adf52 (diff)
downloadgtk+-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.c3
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;