summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-03-08 23:29:38 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:40 -0400
commit91f8c0be5424b615a33ef3e6e418ba3a1ace4613 (patch)
treeadef88488072bbf5bd80e0eaf874336818f2e394 /gtk2_ardour
parentc660703f95a269a7f312e84564345f8961cb7e75 (diff)
use new API for control slave/master relationships
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/mixer_strip.cc8
-rw-r--r--gtk2_ardour/vca_master_strip.cc10
2 files changed, 9 insertions, 9 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index e5d9231ef8..4b4b5f1110 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -641,10 +641,10 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
_route->comment_changed.connect (route_connections, invalidator (*this), boost::bind (&MixerStrip::setup_comment_button, this), gui_context());
_route->PropertyChanged.connect (route_connections, invalidator (*this), boost::bind (&MixerStrip::property_changed, this, _1), gui_context());
- _route->gain_control()->VCAStatusChange.connect (route_connections,
- invalidator (*this),
- boost::bind (&MixerStrip::update_vca_display, this),
- gui_context());
+ _route->gain_control()->MasterStatusChange.connect (route_connections,
+ invalidator (*this),
+ boost::bind (&MixerStrip::update_vca_display, this),
+ gui_context());
set_stuff_from_route ();
diff --git a/gtk2_ardour/vca_master_strip.cc b/gtk2_ardour/vca_master_strip.cc
index d7c1856d7d..fa5ab1c345 100644
--- a/gtk2_ardour/vca_master_strip.cc
+++ b/gtk2_ardour/vca_master_strip.cc
@@ -131,7 +131,7 @@ VCAMasterStrip::VCAMasterStrip (Session* s, boost::shared_ptr<VCA> v)
_vca->solo_control()->Changed.connect (vca_connections, invalidator (*this), boost::bind (&VCAMasterStrip::solo_changed, this), gui_context());
_vca->mute_control()->Changed.connect (vca_connections, invalidator (*this), boost::bind (&VCAMasterStrip::mute_changed, this), gui_context());
- _vca->gain_control()->VCAStatusChange.connect (vca_connections,
+ _vca->gain_control()->MasterStatusChange.connect (vca_connections,
invalidator (*this),
boost::bind (&VCAMasterStrip::update_vca_display, this),
gui_context());
@@ -144,7 +144,7 @@ VCAMasterStrip::update_vca_display ()
string label;
for (VCAList::iterator v = vcas.begin(); v != vcas.end(); ++v) {
- if (_vca->gain_control()->slaved_to (*v)) {
+ if (_vca->gain_control()->slaved_to ((*v)->gain_control())) {
if (!label.empty()) {
label += ' ';
}
@@ -256,11 +256,11 @@ VCAMasterStrip::vca_menu_toggle (CheckMenuItem* menuitem, uint32_t n)
/* null VCA means drop all VCA assignments */
vca_unassign ();
} else {
- _vca->gain_control()->remove_master (vca);
+ _vca->gain_control()->remove_master (vca->gain_control());
}
} else {
if (vca) {
- _vca->gain_control()->add_master (vca);
+ _vca->gain_control()->add_master (vca->gain_control());
}
}
}
@@ -307,7 +307,7 @@ VCAMasterStrip::vca_button_release (GdkEventButton* ev)
items.push_back (CheckMenuElem ((*v)->name()));
CheckMenuItem* item = dynamic_cast<CheckMenuItem*> (&items.back());
- if (_vca->gain_control()->slaved_to (*v)) {
+ if (_vca->gain_control()->slaved_to ((*v)->gain_control())) {
item->set_active (true);
}
item->signal_activate().connect (sigc::bind (sigc::mem_fun (*this, &VCAMasterStrip::vca_menu_toggle), item, (*v)->number()));