[Summary] Bug fix, Improving icon button the way now it can include text.

This commit is contained in:
VKamyshniy 2015-02-12 13:17:36 +02:00
parent cb9f19baca
commit 4eaac75259
2 changed files with 2 additions and 2 deletions

View file

@ -147,7 +147,7 @@ WavesUI::create_widget (const XMLNode& definition, const XMLNodeMap& styles)
if (widget_type == "BUTTON") {
child = manage (new WavesButton (text));
} else if (widget_type == "ICONBUTTON") {
child = manage (new WavesIconButton);
child = manage (new WavesIconButton (text));
} else if (widget_type == "DROPDOWN") {
child = manage (new WavesDropdown (text));
} else if (widget_type == "DROPDOWNITEM") {

View file

@ -179,7 +179,7 @@ xml_property (const XMLNode &node, const char *prop_name, const XMLNodeMap& styl
std::string
xml_property (const XMLNode &node, const char *prop_name, const std::string& default_value)
{
return node.property (prop_name) ? node.property(prop_name)->value() : "";
return node.property (prop_name) ? node.property(prop_name)->value() : default_value;
}
std::string