diff options
author | Carl Hetherington <carl@carlh.net> | 2009-07-20 00:22:09 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-07-20 00:22:09 +0000 |
commit | 23f86529fd2c4d06285671d55f695438e9cb58ac (patch) | |
tree | 0c2c96da31a4353d5cc97e95e248ea9970f86201 /gtk2_ardour/io_selector.cc | |
parent | de58b257ae2444e224543a5da8003e7c717fa5bc (diff) |
Clean up handling of add/remove/rename channels in the port matrix. Hence make it possible to do these things for any bundle (give or take). Clean up port matrix context menu.
git-svn-id: svn://localhost/ardour2/branches/3.0@5393 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/io_selector.cc')
-rw-r--r-- | gtk2_ardour/io_selector.cc | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/gtk2_ardour/io_selector.cc b/gtk2_ardour/io_selector.cc index eab6ff9865..31ba681790 100644 --- a/gtk2_ardour/io_selector.cc +++ b/gtk2_ardour/io_selector.cc @@ -75,7 +75,7 @@ IOSelector::setup_ports (int dim) } else { _port_group->clear (); - _port_group->add_bundle (_io->bundle ()); + _port_group->add_bundle (_io->bundle (), _io); } _ports[dim].resume_signals (); @@ -145,39 +145,6 @@ IOSelector::n_io_ports () const } } -string -IOSelector::add_channel_name () const -{ - return _io->name (); -} - -void -IOSelector::add_channel () -{ - // The IO selector only works for single typed IOs - const ARDOUR::DataType t = _io->default_type (); - - try { - _io->add_port ("", this); - } - - catch (AudioEngine::PortRegistrationFailure& err) { - MessageDialog msg (_("There are no more JACK ports available.")); - msg.run (); - } -} - -void -IOSelector::remove_channel (ARDOUR::BundleChannel bc) -{ - Port* f = _session.engine().get_port_by_name (bc.bundle->channel_ports(bc.channel)[0]); - if (!f) { - return; - } - - _io->remove_port (f, this); -} - bool IOSelector::list_is_global (int dim) const { |