atcontext: labelled-by has a reference list

This is unclear - our docs state that all the
relations have value type reference, but in fact
they all have value type reference list.
This commit is contained in:
Matthias Clasen
2020-10-10 12:12:03 -04:00
parent 3a867e26d0
commit 824ab7e4ed

View File

@@ -762,7 +762,8 @@ gtk_at_context_get_label (GtkATContext *self)
{
value = gtk_accessible_attribute_set_get_value (self->relations, GTK_ACCESSIBLE_RELATION_LABELLED_BY);
GtkAccessible *rel = gtk_reference_accessible_value_get (value);
GList *list = gtk_reference_list_accessible_value_get (value);
GtkAccessible *rel = GTK_ACCESSIBLE (list->data);
GtkATContext *rel_context = gtk_accessible_get_at_context (rel);
return gtk_at_context_get_label (rel_context);