Merge branch 'fix_help_text' into 'main'

a11y: Fix the help text property bridging to ATSPI

See merge request GNOME/gtk!7348
This commit is contained in:
Matthias Clasen 2024-06-29 13:01:09 +00:00
commit 7d3970546c
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@
<property name="AccessibleId" type="s" access="read"/>
<property name="HelpText" type="s" access="read"/>
<method name="GetChildAtIndex">
<arg direction="in" name="index" type="i"/>
<arg direction="out" type="(so)"/>

View File

@ -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))
{