From abd80d0f64a4b32c3a8cce01c9aa1d6bc7ee64bb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 5 Dec 2009 03:04:54 +0000 Subject: Clean up and comment PortMatrix event handling a bit. Fix problems with attempts to access Session after it has been destroyed. git-svn-id: svn://localhost/ardour2/branches/3.0@6290 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/port_matrix.h') diff --git a/gtk2_ardour/port_matrix.h b/gtk2_ardour/port_matrix.h index 78914f0c25..268c898684 100644 --- a/gtk2_ardour/port_matrix.h +++ b/gtk2_ardour/port_matrix.h @@ -52,7 +52,7 @@ class PortMatrixBody; class PortMatrix : public Gtk::Table { public: - PortMatrix (Gtk::Window*, ARDOUR::Session&, ARDOUR::DataType); + PortMatrix (Gtk::Window*, ARDOUR::Session *, ARDOUR::DataType); ~PortMatrix (); void set_type (ARDOUR::DataType); @@ -157,7 +157,7 @@ protected: inputs and outputs should put outputs in list 0 and inputs in list 1. */ PortGroupList _ports[2]; boost::shared_ptr _visible_ports[2]; - ARDOUR::Session& _session; + ARDOUR::Session* _session; private: @@ -174,12 +174,12 @@ private: void toggle_show_only_bundles (); bool on_scroll_event (GdkEventScroll *); boost::shared_ptr io_from_bundle (boost::shared_ptr) const; - void bundle_changed (ARDOUR::Bundle::Change); void setup_notebooks (); void remove_notebook_pages (Gtk::Notebook &); void v_page_selected (GtkNotebookPage *, guint); void h_page_selected (GtkNotebookPage *, guint); void route_processors_changed (ARDOUR::RouteProcessorChange); + void session_going_away (); Gtk::Window* _parent; -- cgit v1.2.3