switch to using boost::signals2 instead of sigc++, at least for libardour. not finish...
[ardour.git] / gtk2_ardour / region_editor.h
index 596bd44140a90c7c9731011037531b61d00b2491..f66d7f8f813cebc86d0662bfdad1b35e2104768d 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef __gtk_ardour_region_edit_h__
 #define __gtk_ardour_region_edit_h__
 
+#include "ardour/session_handle.h"
+
 #include "ardour_dialog.h"
 
 namespace ARDOUR { class Session; }
@@ -28,15 +30,12 @@ namespace ARDOUR { class Session; }
 class RegionEditor : public ArdourDialog
 {
   public:
-       RegionEditor(ARDOUR::Session& s)
-       : ArdourDialog ("region editor")
-       , _session(s)
-       {}
+       RegionEditor(ARDOUR::Session* s)
+               : ArdourDialog ("region editor") {
+               set_session (s);
+       }
 
        virtual ~RegionEditor () {}
-
-  protected:
-       ARDOUR::Session&     _session;
 };
 
 #endif /* __gtk_ardour_region_edit_h__ */