diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-08-29 09:12:35 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:36:55 +1000 |
commit | 346123e619dc187291c995148895d16960ed1fac (patch) | |
tree | 43a58eb7a48d082b245b343b2f110f84ebac1896 /gtk2_ardour/ardour_ui_ed.cc | |
parent | 41493d556a66cdb481d7c39d29a3cdb7773d1531 (diff) |
Use XMLNode::set_property API in ARDOUR_UI class
Diffstat (limited to 'gtk2_ardour/ardour_ui_ed.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_ed.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index f8fa6a7b41..3eb0639933 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -772,7 +772,7 @@ ARDOUR_UI::save_ardour_state () Config->add_extra_xml (*node); XMLNode* window_node = new XMLNode (X_("UI")); - window_node->add_property (_status_bar_visibility.get_state_name().c_str(), _status_bar_visibility.get_state_value ()); + window_node->set_property (_status_bar_visibility.get_state_name().c_str(), _status_bar_visibility.get_state_value ()); /* main window */ @@ -781,10 +781,10 @@ ARDOUR_UI::save_ardour_state () _main_window.get_size (mw, mh); XMLNode main_window_node (X_("Main")); - main_window_node.add_property (X_("x"), PBD::to_string (mx, std::dec)); - main_window_node.add_property (X_("y"), PBD::to_string (my, std::dec)); - main_window_node.add_property (X_("w"), PBD::to_string (mw, std::dec)); - main_window_node.add_property (X_("h"), PBD::to_string (mh, std::dec)); + main_window_node.set_property (X_("x"), mx); + main_window_node.set_property (X_("y"), my); + main_window_node.set_property (X_("w"), mw); + main_window_node.set_property (X_("h"), mh); string current_tab; int current_page_number = _tabs.get_current_page (); @@ -796,7 +796,7 @@ ARDOUR_UI::save_ardour_state () current_tab = "preferences"; } - main_window_node.add_property (X_("current-tab"), current_tab); + main_window_node.set_property (X_("current-tab"), current_tab); /* Windows */ |