diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-01 01:14:14 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-01 01:14:14 +0000 |
commit | 92e412661772e6b9c83109b7ee4996f4c040d3f4 (patch) | |
tree | 1f1006c61d03b6b68855d812561d931606ff84b3 /gtk2_ardour/bundle_manager.cc | |
parent | aad230da6937358b11976c1db3986575b2e412a0 (diff) |
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
Diffstat (limited to 'gtk2_ardour/bundle_manager.cc')
-rw-r--r-- | gtk2_ardour/bundle_manager.cc | 7 |
1 files changed, 3 insertions, 4 deletions
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<Bundle> b) const } void -BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b) +BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> b, DataType t) { if (b == _bundle) { @@ -118,13 +118,12 @@ BundleEditorMatrix::add_channel (boost::shared_ptr<Bundle> 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); } } |