summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ui_config.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-06-11 15:35:34 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-06-11 15:35:34 +0000
commit106024330230fca331e2f611fec42ec1f4f43e5a (patch)
tree56342e0e544be5223d2fa360caaec80ac0fe6fa4 /gtk2_ardour/ui_config.cc
parent7468fdb9ca9892cec9b298690bf0edf3655d6453 (diff)
major, substantive reworking of how we store GUI information (visibility, height) for automation data. old design stored (insufficient) identifying information plus actual data in a GUI-only XML node; new scheme adds GUI data via extra_xml node to each AutomationControl object. reworked public/private methods for showing/hiding TimeAxisView objects; changed labelling of automation tracks to just show the name of the controlled parameter - more info can be viewed in the tooltip for the track headers. NOTE: Session file format ALTERED. No data loss but track visibility may be different than previous ardour3 versions
git-svn-id: svn://localhost/ardour2/branches/3.0@9703 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ui_config.cc')
-rw-r--r--gtk2_ardour/ui_config.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc
index 8e89884b22..10628334fd 100644
--- a/gtk2_ardour/ui_config.cc
+++ b/gtk2_ardour/ui_config.cc
@@ -229,6 +229,8 @@ UIConfiguration::set_state (const XMLNode& root, int /*version*/)
return -1;
}
+ Stateful::save_extra_xml (root);
+
XMLNodeList nlist = root.children();
XMLNodeConstIterator niter;
XMLNode *node;
@@ -236,12 +238,10 @@ UIConfiguration::set_state (const XMLNode& root, int /*version*/)
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
node = *niter;
+
if (node->name() == "Canvas" || node->name() == "UI") {
set_variables (*node);
- } else if (node->name() == "Extra") {
- _extra_xml = new XMLNode (*node);
-
}
}
return 0;