[gtk/matthiasc/a11y: 9/12] atcontext: labelled-by has a reference list
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/a11y: 9/12] atcontext: labelled-by has a reference list
- Date: Sat, 10 Oct 2020 23:43:53 +0000 (UTC)
commit 77935f73cc4daa76a5b45295ba4776e36704e68b
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 10 12:12:03 2020 -0400
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.
gtk/gtkatcontext.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkatcontext.c b/gtk/gtkatcontext.c
index fe770cd5c2..085bf989b2 100644
--- a/gtk/gtkatcontext.c
+++ b/gtk/gtkatcontext.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]