Don't overwrite roles

Otherwise, every GtkBox subclass will have to override
get_accessible just to keep their roles.
This commit is contained in:
Matthias Clasen 2011-07-01 00:48:25 -04:00
parent 0bbe09a28e
commit 8bb24a936f

View File

@ -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;
}