From b19cf5998f775eefbba2017eaa5123d977e2cc92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Fri, 7 Jun 2024 15:57:04 +0200 Subject: [PATCH] a11y: Fix the help text property bridging to ATSPI It needed to be added to the vendored XML introspection data, so it was not marked by a GDBus client as missing outright, and the comparison in the property handler was also wrong. --- gtk/a11y/atspi/Accessible.xml | 2 ++ gtk/a11y/gtkatspicontext.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/a11y/atspi/Accessible.xml b/gtk/a11y/atspi/Accessible.xml index b081bfdb4d..290a566140 100644 --- a/gtk/a11y/atspi/Accessible.xml +++ b/gtk/a11y/atspi/Accessible.xml @@ -16,6 +16,8 @@ + + diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c index 13d9fb7f50..397bb5d551 100644 --- a/gtk/a11y/gtkatspicontext.c +++ b/gtk/a11y/gtkatspicontext.c @@ -729,7 +729,7 @@ handle_accessible_get_property (GDBusConnection *connection, res = get_parent_context_ref (accessible); else if (g_strcmp0 (property_name, "ChildCount") == 0) res = g_variant_new_int32 (gtk_at_spi_context_get_child_count (self)); - else if (g_strcmp0 (property_name, "HelpText")) + else if (g_strcmp0 (property_name, "HelpText") == 0) { if (gtk_at_context_has_accessible_property (GTK_AT_CONTEXT (self), GTK_ACCESSIBLE_PROPERTY_HELP_TEXT)) {