summaryrefslogtreecommitdiff
path: root/gtk/gtklistbox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-14 22:16:00 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-14 22:18:21 -0400
commit147868a30c61c45f1ef0d073a09db18f15d12bd9 (patch)
tree92160b172f390c5b09b360ae41b26adbae922836 /gtk/gtklistbox.c
parentf4f732694ad30fc4cc751e40cefda5f64b345d10 (diff)
downloadgtk+-147868a30c61c45f1ef0d073a09db18f15d12bd9.tar.gz
listbox: Set accessible roles
Use the LIST and LIST_ITEM roles for GtkListBox and GtkListBoxRow.
Diffstat (limited to 'gtk/gtklistbox.c')
-rw-r--r--gtk/gtklistbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index ac1a28426e..189a68ea79 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -679,6 +679,7 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
NULL);
gtk_widget_class_set_css_name (widget_class, I_("list"));
+ gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_LIST);
}
static void
@@ -3510,6 +3511,7 @@ gtk_list_box_row_class_init (GtkListBoxRowClass *klass)
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);
gtk_widget_class_set_css_name (widget_class, I_("row"));
+ gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_LIST_ITEM);
}
static void