use VCAUpdateStatus to keep VCA button current
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 2 Mar 2016 17:47:10 +0000 (12:47 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 May 2016 19:30:39 +0000 (15:30 -0400)
gtk2_ardour/mixer_strip.cc

index 5ea57eeaae94996abfe41ceb7cb634dd07fc10ae..523b6cf477d850a62d8f8fe027e8937354bf4557 100644 (file)
@@ -641,6 +641,11 @@ 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());
+
        set_stuff_from_route ();
 
        /* now force an update of all the various elements */