diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-12 21:12:56 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-12 21:46:06 +0000 |
commit | 8203d9cc40976a7eb5b34b0a011297875d390231 (patch) | |
tree | 3c066da35dd7b6936e1ee8da064a00fcb88fe770 /gtk/gtkshortcutsshortcut.c | |
parent | abc9b403f85a34bcc39c055d337b29d10ebb3a46 (diff) | |
download | gtk+-8203d9cc40976a7eb5b34b0a011297875d390231.tar.gz |
a11y: Use GROUP role for ShortcutsShortcut
And hide the image from the accessible tree.
Diffstat (limited to 'gtk/gtkshortcutsshortcut.c')
-rw-r--r-- | gtk/gtkshortcutsshortcut.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkshortcutsshortcut.c b/gtk/gtkshortcutsshortcut.c index 07b7c04155..dcef5d51a1 100644 --- a/gtk/gtkshortcutsshortcut.c +++ b/gtk/gtkshortcutsshortcut.c @@ -721,6 +721,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass) g_object_class_install_properties (object_class, LAST_PROP, properties); gtk_widget_class_set_css_name (widget_class, I_("shortcut")); + gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_GROUP); } static void @@ -738,6 +739,7 @@ gtk_shortcuts_shortcut_init (GtkShortcutsShortcut *self) self->image = g_object_new (GTK_TYPE_IMAGE, "visible", FALSE, "valign", GTK_ALIGN_CENTER, + "accessible-role", GTK_ACCESSIBLE_ROLE_PRESENTATION, NULL); gtk_box_append (GTK_BOX (self->box), GTK_WIDGET (self->image)); |