diff --git a/gtk2_ardour/vca_master_strip.cc b/gtk2_ardour/vca_master_strip.cc index 34637a1722..7761b6f973 100644 --- a/gtk2_ardour/vca_master_strip.cc +++ b/gtk2_ardour/vca_master_strip.cc @@ -16,15 +16,24 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include "ardour/vca.h" + #include "vca_master_strip.h" using namespace ARDOUR; +using std::string; -VCAMasterStrip::VCAMasterStrip (Session* s) +VCAMasterStrip::VCAMasterStrip (Session* s, boost::shared_ptr v) : AxisView (s) + , vca (v) , gain_meter (s, 250) { - name_button.set_text ("name"); + gain_meter.set_controls (boost::shared_ptr(), + boost::shared_ptr(), + boost::shared_ptr(), + vca->control()); + + name_button.set_text (vca->name()); active_button.set_text ("active"); pack_start (active_button, false, false); @@ -36,3 +45,8 @@ VCAMasterStrip::VCAMasterStrip (Session* s) gain_meter.show_all (); } +string +VCAMasterStrip::name() const +{ + return vca->name(); +}