[Summary] Now, if the root node of XML has UI.NEEDINIT="true", all it's attributes for GTK will be applied to the root Gtk::Container

This commit is contained in:
VKamyshniy 2015-01-26 01:14:24 +02:00
parent 68c5c24f50
commit ee51f29f24

View file

@ -576,6 +576,9 @@ WavesUI::create_ui (const XMLTree& layout, Gtk::Container& root)
XMLNodeMap styles;
get_styles(layout, styles);
const XMLNodeList& definition = layout.root ()->children();
if (xml_property (*layout.root (), "UI.NEEDINIT", styles, false)) {
set_attributes(root, *layout.root (), styles);
}
WavesUI::create_ui (definition, styles, root);
}