projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix OSX compilation
[ardour.git]
/
gtk2_ardour
/
editor_locations.cc
diff --git
a/gtk2_ardour/editor_locations.cc
b/gtk2_ardour/editor_locations.cc
index 7031be410e9690817fbbf2967acd1e5e892832f1..0c0066c3a537545d44e54009cce6b6923d5a2f8f 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,20
@@
using namespace Gtk;
EditorLocations::EditorLocations (Editor* e)
: EditorComponent (e)
{
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
}
void
-EditorLocations::
connect_to
_session (ARDOUR::Session* s)
+EditorLocations::
set
_session (ARDOUR::Session* s)
{
{
-
EditorComponent::connect_to
_session (s);
- locations->set_session (s);
+
SessionHandlePtr::set
_session (s);
+
_
locations->set_session (s);
}
Widget&
}
Widget&
-EditorLocations::widget()
+EditorLocations::widget()
{
{
- return
*locations
;
+ return
_scroller
;
}
}