mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 16:37:44 +01:00
[Summary] Bug fix, Improving icon button the way now it can include text.
This commit is contained in:
parent
cb9f19baca
commit
4eaac75259
2 changed files with 2 additions and 2 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue