summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-05 23:14:48 +0000
committerDavid Robillard <d@drobilla.net>2008-10-05 23:14:48 +0000
commit6b0d22268b85f7033eb7ddcfe9e50e21b86eec34 (patch)
treef339432b60ee666d47a3bddd59c63b8c3b27a69b /gtk2_ardour/time_axis_view.cc
parent14a40f32f696c0d2b4a51fe762c5038a52079706 (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/time_axis_view.cc')
-rw-r--r--gtk2_ardour/time_axis_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc
index 9db77c1649..f36a6b71c0 100644
--- a/gtk2_ardour/time_axis_view.cc
+++ b/gtk2_ardour/time_axis_view.cc
@@ -982,7 +982,7 @@ TimeAxisView::get_state ()
snprintf (buf, sizeof(buf), "%u", height);
node->add_property ("height", buf);
- node->add_property ("marked_for_display", (_marked_for_display ? "1" : "0"));
+ node->add_property ("marked-for-display", (_marked_for_display ? "1" : "0"));
return *node;
}
@@ -991,11 +991,11 @@ TimeAxisView::set_state (const XMLNode& node)
{
const XMLProperty *prop;
- if ((prop = node.property ("marked_for_display")) != 0) {
+ if ((prop = node.property ("marked-for-display")) != 0) {
_marked_for_display = (prop->value() == "1");
}
- if ((prop = node.property ("track_height")) != 0) {
+ if ((prop = node.property ("track-height")) != 0) {
if (prop->value() == "largest") {
set_height (hLargest);