mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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
This commit is contained in:
parent
544d8f33c8
commit
741427d98f
2 changed files with 8 additions and 4 deletions
|
|
@ -28,18 +28,20 @@ using namespace Gtk;
|
||||||
EditorLocations::EditorLocations (Editor* e)
|
EditorLocations::EditorLocations (Editor* e)
|
||||||
: EditorComponent (e)
|
: EditorComponent (e)
|
||||||
{
|
{
|
||||||
locations = new LocationUI;
|
_locations = new LocationUI;
|
||||||
|
_scroller.set_policy (Gtk::POLICY_AUTOMATIC, Gtk::POLICY_NEVER);
|
||||||
|
_scroller.add (*_locations);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
EditorLocations::set_session (ARDOUR::Session* s)
|
EditorLocations::set_session (ARDOUR::Session* s)
|
||||||
{
|
{
|
||||||
SessionHandlePtr::set_session (s);
|
SessionHandlePtr::set_session (s);
|
||||||
locations->set_session (s);
|
_locations->set_session (s);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget&
|
Widget&
|
||||||
EditorLocations::widget()
|
EditorLocations::widget()
|
||||||
{
|
{
|
||||||
return *locations;
|
return _scroller;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#ifndef __gtk_ardour_editor_locations_h__
|
#ifndef __gtk_ardour_editor_locations_h__
|
||||||
#define __gtk_ardour_editor_locations_h__
|
#define __gtk_ardour_editor_locations_h__
|
||||||
|
|
||||||
|
#include <gtkmm/scrolledwindow.h>
|
||||||
#include "ardour/session_handle.h"
|
#include "ardour/session_handle.h"
|
||||||
#include "editor_component.h"
|
#include "editor_component.h"
|
||||||
|
|
||||||
|
|
@ -39,7 +40,8 @@ class EditorLocations : public EditorComponent, public ARDOUR::SessionHandlePtr
|
||||||
Gtk::Widget& widget ();
|
Gtk::Widget& widget ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LocationUI* locations;
|
Gtk::ScrolledWindow _scroller;
|
||||||
|
LocationUI* _locations;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue