mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
a11y: Use GROUP role for ShortcutsShortcut
And hide the image from the accessible tree.
This commit is contained in:
parent
abc9b403f8
commit
8203d9cc40
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user