projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Propagate Latency to backend/system ports (Dummy backend)
[ardour.git]
/
gtk2_ardour
/
editor_locations.cc
diff --git
a/gtk2_ardour/editor_locations.cc
b/gtk2_ardour/editor_locations.cc
index c74a97fc994fb1cc624f5e9cf701fd3ef4082760..328cb65cca101c76d94b97c0f7d5b03390e861c2 100644
(file)
--- a/
gtk2_ardour/editor_locations.cc
+++ b/
gtk2_ardour/editor_locations.cc
@@
-20,7
+20,7
@@
#include "editor_locations.h"
#include "location_ui.h"
#include "editor_locations.h"
#include "location_ui.h"
-#include "i18n.h"
+#include "
pbd/
i18n.h"
using namespace ARDOUR;
using namespace Gtk;
using namespace ARDOUR;
using namespace Gtk;
@@
-28,18
+28,32
@@
using namespace Gtk;
EditorLocations::EditorLocations (Editor* e)
: EditorComponent (e)
{
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);
}
void
EditorLocations::set_session (ARDOUR::Session* s)
{
SessionHandlePtr::set_session (s);
}
void
EditorLocations::set_session (ARDOUR::Session* s)
{
SessionHandlePtr::set_session (s);
- locations->set_session (s);
+
_
locations->set_session (s);
}
Widget&
}
Widget&
-EditorLocations::widget()
+EditorLocations::widget()
{
{
- return *locations;
+ return _scroller;
+}
+
+XMLNode&
+EditorLocations::get_state () const
+{
+ return _locations->get_state();
+}
+
+int
+EditorLocations::set_state (const XMLNode& node)
+{
+ return _locations->set_state(node);
}
}