From 92e412661772e6b9c83109b7ee4996f4c040d3f4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 1 Jul 2010 01:14:14 +0000 Subject: Allow port matrix to show both audio and midi ports at the same time, and use that facility for route IO selectors. git-svn-id: svn://localhost/ardour2/branches/3.0@7344 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/bundle_manager.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/bundle_manager.cc') diff --git a/gtk2_ardour/bundle_manager.cc b/gtk2_ardour/bundle_manager.cc index 66e985e808..9916f80581 100644 --- a/gtk2_ardour/bundle_manager.cc +++ b/gtk2_ardour/bundle_manager.cc @@ -107,7 +107,7 @@ BundleEditorMatrix::can_add_channel (boost::shared_ptr b) const } void -BundleEditorMatrix::add_channel (boost::shared_ptr b) +BundleEditorMatrix::add_channel (boost::shared_ptr b, DataType t) { if (b == _bundle) { @@ -118,13 +118,12 @@ BundleEditorMatrix::add_channel (boost::shared_ptr b) return; } - /* XXX: allow user to specify type */ - _bundle->add_channel (d.get_name(), DataType::AUDIO); + _bundle->add_channel (d.get_name(), t); setup_ports (OURS); } else { - PortMatrix::add_channel (b); + PortMatrix::add_channel (b, t); } } -- cgit v1.2.3