views/agenda-view: Set accessible properties for list items

This is needed to have the screen reader read event information
out loud.

Related: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1036
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/606>
This commit is contained in:
Hari Rana
2025-06-30 16:18:06 +00:00
committed by Marge Bot
parent 4e7bc70450
commit b368e1f674
+8
View File
@@ -611,6 +611,14 @@ gcal_agenda_view_add_event (GcalTimelineSubscriber *subscriber,
gcal_event_get_range (event),
child_data_new (row, event, self));
gtk_accessible_update_property (GTK_ACCESSIBLE (row),
GTK_ACCESSIBLE_PROPERTY_HAS_POPUP, TRUE,
-1);
gtk_accessible_update_relation (GTK_ACCESSIBLE (row),
GTK_ACCESSIBLE_RELATION_LABELLED_BY, widget, NULL,
-1);
g_signal_connect (widget, "activate", G_CALLBACK (on_event_widget_activated_cb), self);
gtk_list_box_append (GTK_LIST_BOX (self->list_box), row);