summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-07-13 16:03:27 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-07-26 20:31:15 +0100
commit58628f9a9e6c0298621f5f5d93e78ec21258e6bb (patch)
tree253b9589cfbcad6b52fbe3038d80b8effa608729 /gtk/gtkbutton.c
parentda1ce01a6f0c6010cd539220ccdc5a75b21a84c2 (diff)
downloadgtk+-58628f9a9e6c0298621f5f5d93e78ec21258e6bb.tar.gz
a11y: Add roles to various widgets
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r--gtk/gtkbutton.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index f9fd20e0f5..d9358e3e75 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -302,6 +302,8 @@ gtk_button_class_init (GtkButtonClass *klass)
"activate", NULL);
gtk_widget_class_add_binding_signal (widget_class, GDK_KEY_KP_Enter, 0,
"activate", NULL);
+
+ gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_BUTTON);
}
static void