summaryrefslogtreecommitdiff
path: root/gtk2_ardour/bundle_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/bundle_manager.cc')
-rw-r--r--gtk2_ardour/bundle_manager.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/bundle_manager.cc b/gtk2_ardour/bundle_manager.cc
index 1b493348ae..42fbabbbe9 100644
--- a/gtk2_ardour/bundle_manager.cc
+++ b/gtk2_ardour/bundle_manager.cc
@@ -38,7 +38,7 @@ BundleEditorMatrix::BundleEditorMatrix (
PortGroupList::Mask (PortGroupList::SYSTEM | PortGroupList::OTHER)
)
{
- _our_bundle = bundle;
+ _our_bundles.push_back (bundle);
}
void
@@ -61,7 +61,7 @@ BundleEditorMatrix::set_state (
}
}
-bool
+PortMatrix::State
BundleEditorMatrix::get_state (
boost::shared_ptr<ARDOUR::Bundle> ab,
uint32_t ac,
@@ -72,11 +72,11 @@ BundleEditorMatrix::get_state (
ARDOUR::Bundle::PortList const& pl = bb->channel_ports (bc);
for (ARDOUR::Bundle::PortList::const_iterator i = pl.begin(); i != pl.end(); ++i) {
if (!ab->port_attached_to_channel (ac, *i)) {
- return false;
+ return NOT_ASSOCIATED;
}
}
- return true;
+ return ASSOCIATED;
}
void
@@ -89,14 +89,14 @@ BundleEditorMatrix::add_channel (boost::shared_ptr<ARDOUR::Bundle> b)
return;
}
- _our_bundle->add_channel (d.get_name());
+ _our_bundles.front()->add_channel (d.get_name());
setup ();
}
void
BundleEditorMatrix::remove_channel (boost::shared_ptr<ARDOUR::Bundle> b, uint32_t c)
{
- _our_bundle->remove_channel (c);
+ _our_bundles.front()->remove_channel (c);
setup ();
}