Clean up 135814cf0, prefer PannableChanged signal
This allows to also catch cases when a panner-ui directly changes set_linked_to_route() of the panner shell.
This commit is contained in:
@@ -124,6 +124,7 @@ private:
|
||||
Send (const Send&);
|
||||
|
||||
void panshell_changed ();
|
||||
void pannable_changed ();
|
||||
void snd_output_changed (IOChange, void*);
|
||||
|
||||
void update_delaylines ();
|
||||
|
||||
@@ -108,6 +108,7 @@ Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMas
|
||||
|
||||
if (panner_shell()) {
|
||||
panner_shell()->Changed.connect_same_thread (*this, boost::bind (&Send::panshell_changed, this));
|
||||
panner_shell()->PannableChanged.connect_same_thread (*this, boost::bind (&Send::pannable_changed, this));
|
||||
}
|
||||
if (_output) {
|
||||
_output->changed.connect_same_thread (*this, boost::bind (&Send::snd_output_changed, this, _1, _2));
|
||||
@@ -453,7 +454,6 @@ void
|
||||
Send::set_panner_linked_to_route (bool onoff) {
|
||||
if (_panshell) {
|
||||
_panshell->set_linked_to_route (onoff);
|
||||
PropertyChanged (PBD::PropertyChange ()); /* EMIT SIGNAL */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -503,6 +503,12 @@ Send::panshell_changed ()
|
||||
_meter->configure_io (ChanCount (DataType::AUDIO, pan_outs()), ChanCount (DataType::AUDIO, pan_outs()));
|
||||
}
|
||||
|
||||
void
|
||||
Send::pannable_changed ()
|
||||
{
|
||||
PropertyChanged (PBD::PropertyChange ()); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
bool
|
||||
Send::set_name (const string& new_name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user