summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_locations.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-01-03 18:53:46 +0000
committerCarl Hetherington <carl@carlh.net>2011-01-03 18:53:46 +0000
commit741427d98ff34f822e1f0ebce42cf08b70e10e96 (patch)
tree9f7ea332c1265c484cc7037854a38c747ccaf69c /gtk2_ardour/editor_locations.cc
parent544d8f33c8e3396665fbb5f93a912bd7e121d31a (diff)
Give the locations editor tab a horizontal scrollbar if needs be. Fixes #3643.
git-svn-id: svn://localhost/ardour2/branches/3.0@8421 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_locations.cc')
-rw-r--r--gtk2_ardour/editor_locations.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_locations.cc b/gtk2_ardour/editor_locations.cc
index c74a97fc99..ea96f5f514 100644
--- a/gtk2_ardour/editor_locations.cc
+++ b/gtk2_ardour/editor_locations.cc
@@ -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()
{
- return *locations;
+ return _scroller;
}