Skip to content

a11y atspi: Map GTK_ACCESSIBLE_PROPERTY_LEVEL to AT-SPI attr

Map GTK_ACCESSIBLE_PROPERTY_LEVEL to the corresponding AT-SPI object attribute "level", as it is specified e.g. in the Core Accessibility Mappings 1.2 for the "aria-level" attribute, for both, headings [1] and non-headings [2].

This e.g. makes reporting the header level via AT-SPI work for the gtk4-based LibreOffice variant when combined with the corresponding LibreOffice change [3] to set the GTK_ACCESSIBLE_PROPERTY_LEVEL property.

For a related discussion, see issue #6196.

[1] https://www.w3.org/TR/core-aam-1.2/#ariaLevelHeading [2] https://www.w3.org/TR/core-aam-1.2/#ariaLevel [3] https://gerrit.libreoffice.org/c/core/+/159216

Merge request reports