From 1b000b5586a2c31dda7ff61094072f5b2e0b12a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Wed, 1 Mar 2023 11:07:09 +0100 Subject: [PATCH] a11y: Fix mapping of GTK_ACCESSIBLE_ROLE_PRESENTATION It was, for some reason, mapped to ATSPI_ROLE_SECTION, and GTK_ACCESSIBLE_ROLE_SECTION was mapped to ATSPI_ROLE_FILLER, so the mapping is reversed. So, reverse it and make it correct. --- gtk/a11y/gtkatspiutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/a11y/gtkatspiutils.c b/gtk/a11y/gtkatspiutils.c index e8ed02ef31..dad03e7a9f 100644 --- a/gtk/a11y/gtkatspiutils.c +++ b/gtk/a11y/gtkatspiutils.c @@ -169,7 +169,7 @@ gtk_accessible_role_to_atspi_role (GtkAccessibleRole role) return ATSPI_ROLE_OPTION_PANE; case GTK_ACCESSIBLE_ROLE_PRESENTATION: - return ATSPI_ROLE_SECTION; + return ATSPI_ROLE_FILLER; case GTK_ACCESSIBLE_ROLE_PROGRESS_BAR: return ATSPI_ROLE_PROGRESS_BAR; @@ -205,7 +205,7 @@ gtk_accessible_role_to_atspi_role (GtkAccessibleRole role) return ATSPI_ROLE_ENTRY; case GTK_ACCESSIBLE_ROLE_SECTION: - return ATSPI_ROLE_FILLER; + return ATSPI_ROLE_SECTION; case GTK_ACCESSIBLE_ROLE_SECTION_HEAD: return ATSPI_ROLE_FILLER;