diff options
author | Carl Hetherington <carl@carlh.net> | 2009-01-27 04:21:13 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-01-27 04:21:13 +0000 |
commit | 9cc7b452ebb8fe8f348ad6aad18054703700da18 (patch) | |
tree | a54d33c5f608b321823665baec607ee4f83d5f70 /gtk2_ardour/io_selector.cc | |
parent | 7e1b86aceeef477e13b4c35f524034d909acd92c (diff) |
First cut at mouseovers for the port matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@4446 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/io_selector.cc')
-rw-r--r-- | gtk2_ardour/io_selector.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk2_ardour/io_selector.cc b/gtk2_ardour/io_selector.cc index cb1a07ce14..b472c8eb71 100644 --- a/gtk2_ardour/io_selector.cc +++ b/gtk2_ardour/io_selector.cc @@ -63,9 +63,9 @@ IOSelector::~IOSelector () void IOSelector::setup () { - _port_group->bundles.clear (); - _port_group->bundles.push_back (boost::shared_ptr<ARDOUR::Bundle> (new ARDOUR::Bundle)); - _port_group->bundles.front()->set_name (_io->name()); + _port_group->clear (); + _port_group->add_bundle (boost::shared_ptr<ARDOUR::Bundle> (new ARDOUR::Bundle)); + _port_group->only_bundle()->set_name (_io->name()); if (offering_input ()) { const PortSet& ps (_io->outputs()); @@ -74,8 +74,8 @@ IOSelector::setup () for (PortSet::const_iterator i = ps.begin(); i != ps.end(); ++i) { char buf[32]; snprintf (buf, sizeof(buf), _("out %d"), j + 1); - _port_group->bundles.front()->add_channel (buf); - _port_group->bundles.front()->add_port_to_channel (j, _session.engine().make_port_name_non_relative (i->name())); + _port_group->only_bundle()->add_channel (buf); + _port_group->only_bundle()->add_port_to_channel (j, _session.engine().make_port_name_non_relative (i->name())); ++j; } @@ -87,8 +87,8 @@ IOSelector::setup () for (PortSet::const_iterator i = ps.begin(); i != ps.end(); ++i) { char buf[32]; snprintf (buf, sizeof(buf), _("in %d"), j + 1); - _port_group->bundles.front()->add_channel (buf); - _port_group->bundles.front()->add_port_to_channel (j, _session.engine().make_port_name_non_relative (i->name())); + _port_group->only_bundle()->add_channel (buf); + _port_group->only_bundle()->add_port_to_channel (j, _session.engine().make_port_name_non_relative (i->name())); ++j; } |