vcl/unx/gtk4/a11y.cxx | 5 +++++ 1 file changed, 5 insertions(+) New commits: commit ff527c41a04c38aa88a665e669f19729cf68fd54 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Tue Dec 19 09:13:36 2023 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Tue Dec 19 11:22:53 2023 +0100
gtk4 a11y: Map COMMENT role to new gtk equivalent Map `AccessibleRole::COMMENT` to the Gtk 4 equivalent `GTK_ACCESSIBLE_ROLE_COMMENT` newly added in upstream gtk commit [1] commit ab7592ee4f8ded4c3990cff5daf7f28ef26ac41f Author: Michael Weghorn <m.wegh...@posteo.de> Date: Wed Dec 6 14:34:43 2023 +0100 a11y: Add article and comment roles [1] https://gitlab.gnome.org/GNOME/gtk/-/commit/ab7592ee4f8ded4c3990cff5daf7f28ef26ac41f Change-Id: I2816f2caf04e7c70c5eed63c1ae7aea0c9e48dd6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160396 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> Tested-by: Jenkins diff --git a/vcl/unx/gtk4/a11y.cxx b/vcl/unx/gtk4/a11y.cxx index 37b54bae0475..2b5e64e03947 100644 --- a/vcl/unx/gtk4/a11y.cxx +++ b/vcl/unx/gtk4/a11y.cxx @@ -214,6 +214,11 @@ map_accessible_role(const css::uno::Reference<css::accessibility::XAccessible>& case css::accessibility::AccessibleRole::SHAPE: eRole = GTK_ACCESSIBLE_ROLE_IMG; break; + case css::accessibility::AccessibleRole::COMMENT: +#if GTK_CHECK_VERSION(4, 13, 4) + eRole = GTK_ACCESSIBLE_ROLE_COMMENT; + break; +#endif default: SAL_WARN("vcl.gtk", "unmapped GtkAccessibleRole: " << xContext->getAccessibleRole());