diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-10 14:14:47 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-10 14:31:56 +0000 |
commit | c264254d4bc2e641042db744a9ada7504d53351f (patch) | |
tree | b5f68e7ef81c33b3ce4eab9f5c41d1506d4d9569 /gtk/gtkframe.c | |
parent | 6af89e90348ae83d1d88fbf094660205fa45989f (diff) | |
download | gtk+-c264254d4bc2e641042db744a9ada7504d53351f.tar.gz |
a11y: Parse reference lists using varargs
Using GList is a bit lame, and makes the API more complicated to use
than necessary in the common case.
The only real use case for a GList is gtk_widget_add_mnemonic_label(),
and for that we can use the GValue-based API instead.
Fixes: #3343
Diffstat (limited to 'gtk/gtkframe.c')
-rw-r--r-- | gtk/gtkframe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c index a841af7777..a8aa980779 100644 --- a/gtk/gtkframe.c +++ b/gtk/gtkframe.c @@ -376,7 +376,7 @@ update_accessible_relation (GtkFrame *frame) if (priv->label_widget) gtk_accessible_update_relation (GTK_ACCESSIBLE (priv->child), - GTK_ACCESSIBLE_RELATION_LABELLED_BY, g_list_append (NULL, priv->label_widget), + GTK_ACCESSIBLE_RELATION_LABELLED_BY, priv->label_widget, NULL, -1); else gtk_accessible_reset_relation (GTK_ACCESSIBLE (priv->child), |