summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_locations.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-14 17:15:16 +0100
committerRobin Gareus <robin@gareus.org>2017-02-14 17:15:16 +0100
commit8eff36913c91bfd5731b6d1cdaa7f0250de7b6e6 (patch)
tree29beb51d602646ae9bed19563174aa2570d3292a /gtk2_ardour/editor_locations.cc
parentcf66f894bb5f776b78d1a8b2301d72598f37999f (diff)
Save/restore location clock mode
- save mode separately for Editor-sidebar and Location Window - cache mode (multiple calls to set_session()) - fix restore: after creating the editor, instant_save() is called, potentially overwriting the previous value.
Diffstat (limited to 'gtk2_ardour/editor_locations.cc')
-rw-r--r--gtk2_ardour/editor_locations.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_locations.cc b/gtk2_ardour/editor_locations.cc
index 0c0066c3a5..328cb65cca 100644
--- a/gtk2_ardour/editor_locations.cc
+++ b/gtk2_ardour/editor_locations.cc
@@ -28,7 +28,7 @@ using namespace Gtk;
EditorLocations::EditorLocations (Editor* e)
: EditorComponent (e)
{
- _locations = new LocationUI ();
+ _locations = new LocationUI (X_("EditorLocations"));
_scroller.set_policy (Gtk::POLICY_AUTOMATIC, Gtk::POLICY_NEVER);
_scroller.add (*_locations);
}
@@ -45,3 +45,15 @@ EditorLocations::widget()
{
return _scroller;
}
+
+XMLNode&
+EditorLocations::get_state () const
+{
+ return _locations->get_state();
+}
+
+int
+EditorLocations::set_state (const XMLNode& node)
+{
+ return _locations->set_state(node);
+}