mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 19:00:12 +00:00
Don't overwrite roles
Otherwise, every GtkBox subclass will have to override get_accessible just to keep their roles.
This commit is contained in:
parent
0bbe09a28e
commit
8bb24a936f
@ -1361,6 +1361,7 @@ gtk_box_get_accessible (GtkWidget *widget)
|
|||||||
|
|
||||||
obj = GTK_WIDGET_CLASS (gtk_box_parent_class)->get_accessible (widget);
|
obj = GTK_WIDGET_CLASS (gtk_box_parent_class)->get_accessible (widget);
|
||||||
|
|
||||||
|
if (atk_object_get_role (obj) == ATK_ROLE_UNKNOWN)
|
||||||
atk_object_set_role (obj, ATK_ROLE_FILLER);
|
atk_object_set_role (obj, ATK_ROLE_FILLER);
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
|
Loading…
Reference in New Issue
Block a user