change API of EditorSections to take an EditingContext& at construction

Then use this instead of PublicEditor::instance() in its code, mostly.
This commit is contained in:
Paul Davis 2025-05-14 11:35:53 -06:00
parent 316947f7dc
commit a8b4345d8f
3 changed files with 14 additions and 10 deletions

View file

@ -29,10 +29,12 @@
#include <ytkmm/treemodel.h>
#include <ytkmm/treeview.h>
class EditingContext;
class EditorSections : public ARDOUR::SessionHandlePtr, public virtual sigc::trackable
{
public:
EditorSections ();
EditorSections (EditingContext&);
void set_session (ARDOUR::Session*);
@ -115,6 +117,7 @@ private:
Gtk::TreeView _view;
Gtk::ScrolledWindow _scroller;
EditingContext& editing_context;
LocationRowMap _location_row_map;
bool _no_redisplay;
sigc::connection _scroll_timeout;