use ActionManager namespace, rather than ActionMap objects, and remove all per-contex...
[ardour.git] / gtk2_ardour / editor_locations.cc
index 03509ac0238c858095b5d450eee149ae354cedfa..328cb65cca101c76d94b97c0f7d5b03390e861c2 100644 (file)
@@ -20,7 +20,7 @@
 #include "editor_locations.h"
 #include "location_ui.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace Gtk;
@@ -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);
+}