Commit 8bb24a93 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Don't overwrite roles

Otherwise, every GtkBox subclass will have to override
get_accessible just to keep their roles.
parent 0bbe09a2
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment