13
0

EditorSnapshots does not benefit by inheriting from EditorComponent

This commit is contained in:
Robin Gareus 2022-08-05 00:14:12 +02:00
parent 916fc4a2ee
commit 67f55d7b4e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 4 additions and 5 deletions

View File

@ -681,7 +681,7 @@ Editor::Editor ()
_routes = new EditorRoutes ();
_regions = new EditorRegions (this);
_sources = new EditorSources (this);
_snapshots = new EditorSnapshots (this);
_snapshots = new EditorSnapshots ();
_locations = new EditorLocations (this);
_properties_box = new SelectionPropertiesBox ();

View File

@ -48,8 +48,7 @@ using namespace Gtk;
using namespace ARDOUR;
using namespace ARDOUR_UI_UTILS;
EditorSnapshots::EditorSnapshots (Editor* e)
: EditorComponent (e)
EditorSnapshots::EditorSnapshots ()
{
_snapshot_model = ListStore::create (_columns);
_snapshot_display.set_model (_snapshot_model);

View File

@ -27,10 +27,10 @@
#include <gtkmm/treeview.h>
#include "editor_component.h"
class EditorSnapshots : public EditorComponent, public ARDOUR::SessionHandlePtr
class EditorSnapshots : public ARDOUR::SessionHandlePtr
{
public:
EditorSnapshots (Editor *);
EditorSnapshots ();
void set_session (ARDOUR::Session *);