[gtk/matthiasc/for-master: 3/3] gtk-demo: Small a11y fix
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 3/3] gtk-demo: Small a11y fix
- Date: Tue, 5 Jan 2021 16:16:50 +0000 (UTC)
commit 36eb7c40d03cfdd8c441cde8d09017c14158f5ef
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 5 11:16:10 2021 -0500
gtk-demo: Small a11y fix
Label the entry in the assistant demo.
demos/gtk-demo/assistant.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/demos/gtk-demo/assistant.c b/demos/gtk-demo/assistant.c
index a84b87ad81..238bb0524a 100644
--- a/demos/gtk-demo/assistant.c
+++ b/demos/gtk-demo/assistant.c
@@ -98,6 +98,9 @@ create_page1 (GtkWidget *assistant)
gtk_box_append (GTK_BOX (box), label);
entry = gtk_entry_new ();
+ gtk_accessible_update_relation (GTK_ACCESSIBLE (entry),
+ GTK_ACCESSIBLE_RELATION_LABELLED_BY, label, NULL,
+ -1);
gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
gtk_widget_set_valign (entry, GTK_ALIGN_CENTER);
gtk_box_append (GTK_BOX (box), entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]