From: Matthias Clasen Date: Tue, 20 Jun 2023 01:06:50 +0000 (-0400) Subject: gtk-demo: Improve a11y for applauncher X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~119^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a2fdeb99e0d6131d85b6e49351cffee6a18d73f5;p=gtk4.git gtk-demo: Improve a11y for applauncher Use the new listitem properties to make orca read the selected item in the applauncher demo. --- diff --git a/demos/gtk-demo/listview_applauncher.c b/demos/gtk-demo/listview_applauncher.c index e35b958731..64f1a70f02 100644 --- a/demos/gtk-demo/listview_applauncher.c +++ b/demos/gtk-demo/listview_applauncher.c @@ -79,6 +79,7 @@ bind_listitem_cb (GtkListItemFactory *factory, gtk_image_set_from_gicon (GTK_IMAGE (image), g_app_info_get_icon (app_info)); gtk_label_set_label (GTK_LABEL (label), g_app_info_get_display_name (app_info)); + gtk_list_item_set_accessible_label (list_item, g_app_info_get_display_name (app_info)); } /* In more complex code, we would also need functions to unbind and teardown