Provide dialogs to edit pan values numerically, at least for
[ardour.git] / gtk2_ardour / editor_locations.cc
index c74a97fc994fb1cc624f5e9cf701fd3ef4082760..bbaf0daf7521de7741cff4f95dd8c395c0b1be1c 100644 (file)
@@ -28,18 +28,20 @@ using namespace Gtk;
 EditorLocations::EditorLocations (Editor* e)
        : EditorComponent (e)
 {
-       locations = new LocationUI;
+       _locations = new LocationUI;
+       _scroller.set_policy (Gtk::POLICY_AUTOMATIC, Gtk::POLICY_NEVER);
+       _scroller.add (*_locations);
 }
 
 void
 EditorLocations::set_session (ARDOUR::Session* s)
 {
        SessionHandlePtr::set_session (s);
-       locations->set_session (s);
+       _locations->set_session (s);
 }
 
 Widget&
-EditorLocations::widget() 
+EditorLocations::widget()
 {
-       return *locations;
+       return _scroller;
 }