diff options
author | David Robillard <d@drobilla.net> | 2008-10-05 23:14:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-05 23:14:48 +0000 |
commit | 6b0d22268b85f7033eb7ddcfe9e50e21b86eec34 (patch) | |
tree | f339432b60ee666d47a3bddd59c63b8c3b27a69b /gtk2_ardour/mixer_strip.cc | |
parent | 14a40f32f696c0d2b4a51fe762c5038a52079706 (diff) |
Normalize XML property name style, preserving old session loading (on load _ will be converted to -).
Still to go: Non-consistent PBD tag names, colours.
git-svn-id: svn://localhost/ardour2/branches/3.0@3872 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index f98469eb7b..373babf417 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -424,11 +424,11 @@ MixerStrip::set_stuff_from_route () /* if width is not set, it will be set by the MixerUI or editor */ - if ((prop = xml_node->property ("strip_width")) != 0) { + if ((prop = xml_node->property ("strip-width")) != 0) { set_width (Width (string_2_enum (prop->value(), _width)), this); } - if ((prop = xml_node->property ("shown_mixer")) != 0) { + if ((prop = xml_node->property ("shown-mixer")) != 0) { if (prop->value() == "no") { _marked_for_display = false; } else { @@ -459,7 +459,7 @@ MixerStrip::set_width (Width w, void* owner) _width = w; if (_width_owner == this) { - xml_node->add_property ("strip_width", enum_2_string (_width)); + xml_node->add_property ("strip-width", enum_2_string (_width)); } switch (w) { @@ -526,9 +526,9 @@ MixerStrip::set_packed (bool yn) ensure_xml_node (); if (_packed) { - xml_node->add_property ("shown_mixer", "yes"); + xml_node->add_property ("shown-mixer", "yes"); } else { - xml_node->add_property ("shown_mixer", "no"); + xml_node->add_property ("shown-mixer", "no"); } } |