diff options
author | Carl Hetherington <carl@carlh.net> | 2009-12-05 03:04:54 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-12-05 03:04:54 +0000 |
commit | abd80d0f64a4b32c3a8cce01c9aa1d6bc7ee64bb (patch) | |
tree | c46721af34d296670a6da0ce87eaaac1c5208f6f /gtk2_ardour/port_matrix.h | |
parent | bdf5dead24c16e23977d4b3d2561dbb0f8a7ae4e (diff) |
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
Diffstat (limited to 'gtk2_ardour/port_matrix.h')
-rw-r--r-- | gtk2_ardour/port_matrix.h | 6 |
1 files changed, 3 insertions, 3 deletions
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<PortGroup> _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<ARDOUR::IO> io_from_bundle (boost::shared_ptr<ARDOUR::Bundle>) 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; |