summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-08-29 22:02:11 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-04-19 09:36:57 +1000
commitb00b83f95a73928b39af97b2288e888106563bce (patch)
treed23656d779ffd28a9f5eacb466c325004643a613 /gtk2_ardour
parent3ba34e13b16f9cd0a42a79b103ee51992ecd1298 (diff)
Use XMLNode::set_property API in UIConfiguration class
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ui_config.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc
index 2a555970c4..4254350353 100644
--- a/gtk2_ardour/ui_config.cc
+++ b/gtk2_ardour/ui_config.cc
@@ -370,10 +370,10 @@ UIConfiguration::store_color_theme ()
XMLNode* parent = new XMLNode (X_("Colors"));
for (Colors::const_iterator i = colors.begin(); i != colors.end(); ++i) {
XMLNode* node = new XMLNode (X_("Color"));
- node->add_property (X_("name"), i->first);
+ node->set_property (X_("name"), i->first);
stringstream ss;
ss << "0x" << setw (8) << setfill ('0') << hex << i->second;
- node->add_property (X_("value"), ss.str());
+ node->set_property (X_("value"), ss.str());
parent->add_child_nocopy (*node);
}
root->add_child_nocopy (*parent);
@@ -381,8 +381,8 @@ UIConfiguration::store_color_theme ()
parent = new XMLNode (X_("ColorAliases"));
for (ColorAliases::const_iterator i = color_aliases.begin(); i != color_aliases.end(); ++i) {
XMLNode* node = new XMLNode (X_("ColorAlias"));
- node->add_property (X_("name"), i->first);
- node->add_property (X_("alias"), i->second);
+ node->set_property (X_("name"), i->first);
+ node->set_property (X_("alias"), i->second);
parent->add_child_nocopy (*node);
}
root->add_child_nocopy (*parent);
@@ -390,8 +390,8 @@ UIConfiguration::store_color_theme ()
parent = new XMLNode (X_("Modifiers"));
for (Modifiers::const_iterator i = modifiers.begin(); i != modifiers.end(); ++i) {
XMLNode* node = new XMLNode (X_("Modifier"));
- node->add_property (X_("name"), i->first);
- node->add_property (X_("modifier"), i->second.to_string());
+ node->set_property (X_("name"), i->first);
+ node->set_property (X_("modifier"), i->second.to_string());
parent->add_child_nocopy (*node);
}
root->add_child_nocopy (*parent);