From 4eaac75259e2c4db5cc0a2e6794df3cfbee0573b Mon Sep 17 00:00:00 2001 From: VKamyshniy Date: Thu, 12 Feb 2015 13:17:36 +0200 Subject: [PATCH] [Summary] Bug fix, Improving icon button the way now it can include text. --- gtk2_ardour/waves_ui.cc | 2 +- libs/canvas/xml_ui.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/waves_ui.cc b/gtk2_ardour/waves_ui.cc index b981c2f0ff..043fdb949e 100644 --- a/gtk2_ardour/waves_ui.cc +++ b/gtk2_ardour/waves_ui.cc @@ -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") { diff --git a/libs/canvas/xml_ui.cc b/libs/canvas/xml_ui.cc index 7a3a458950..4d301cd3c1 100644 --- a/libs/canvas/xml_ui.cc +++ b/libs/canvas/xml_ui.cc @@ -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