Only show user-presets in favorite sidebar
[ardour.git] / gtk2_ardour / editor_locations.cc
index ea96f5f514369472b191230dcbbbfafa20aea15c..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);
 }
@@ -41,7 +41,19 @@ EditorLocations::set_session (ARDOUR::Session* s)
 }
 
 Widget&
-EditorLocations::widget() 
+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);
+}