summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-19 12:56:50 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-19 12:56:50 -0400
commit80e0e3fe4f3c17e9d5e2057df67fb257801ff6d3 (patch)
tree49d31ca2a29229121fcf705513e5a635c72f6c3b /demos
parent9f9e7dffefed8e3f05c5427e44adc7f017915570 (diff)
downloadgtk+-80e0e3fe4f3c17e9d5e2057df67fb257801ff6d3.tar.gz
gtk-demo: Set an accessible role
Set the expected accessible role on the tagged entry widget in the demo of the same name. Accessible tools may decide to ignore widgets that have the wrong role, so setting an appropriate role is important.
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/demotaggedentry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/gtk-demo/demotaggedentry.c b/demos/gtk-demo/demotaggedentry.c
index d75f49d76a..8d5c93edff 100644
--- a/demos/gtk-demo/demotaggedentry.c
+++ b/demos/gtk-demo/demotaggedentry.c
@@ -116,6 +116,7 @@ demo_tagged_entry_class_init (DemoTaggedEntryClass *klass)
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BOX_LAYOUT);
gtk_widget_class_set_css_name (widget_class, "entry");
+ gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_TEXT_BOX);
}
static GtkEditable *