mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 19:30:10 +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,7 +1361,8 @@ gtk_box_get_accessible (GtkWidget *widget)
|
||||
|
||||
obj = GTK_WIDGET_CLASS (gtk_box_parent_class)->get_accessible (widget);
|
||||
|
||||
atk_object_set_role (obj, ATK_ROLE_FILLER);
|
||||
if (atk_object_get_role (obj) == ATK_ROLE_UNKNOWN)
|
||||
atk_object_set_role (obj, ATK_ROLE_FILLER);
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user