X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fvca_time_axis.cc;h=6a09c7f9a809ad84da9fbe0ba888ff7f6e6662d0;hb=c12fa9c3cbfd180ff89ef70b62e3fc2e339296de;hp=0c77fd66f844fbdd103a980fb1d8930a61a8a750;hpb=8ceab4e193bb451607b68bdf892b79893b399d1a;p=ardour.git diff --git a/gtk2_ardour/vca_time_axis.cc b/gtk2_ardour/vca_time_axis.cc index 0c77fd66f8..6a09c7f9a8 100644 --- a/gtk2_ardour/vca_time_axis.cc +++ b/gtk2_ardour/vca_time_axis.cc @@ -33,7 +33,7 @@ #include "ui_config.h" #include "vca_time_axis.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace ARDOUR; using namespace ARDOUR_UI_UTILS; @@ -83,6 +83,9 @@ VCATimeAxisView::VCATimeAxisView (PublicEditor& ed, Session* s, ArdourCanvas::Ca spill_button.show (); gain_meter.get_gain_slider().show (); + controls_ebox.set_name ("ControlMasterBaseUnselected"); + time_axis_frame.set_name ("ControlMasterBaseUnselected"); + s->config.ParameterChanged.connect (*this, invalidator (*this), boost::bind (&VCATimeAxisView::parameter_changed, this, _1), gui_context()); Config->ParameterChanged.connect (*this, invalidator (*this), boost::bind (&VCATimeAxisView::parameter_changed, this, _1), gui_context()); UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &VCATimeAxisView::parameter_changed)); @@ -174,7 +177,7 @@ VCATimeAxisView::vca_property_changed (PropertyChange const & what_changed) void VCATimeAxisView::update_vca_name () { - name_label.set_text (_vca->name()); + name_label.set_text (_vca->full_name()); } void @@ -308,13 +311,13 @@ VCATimeAxisView::set_height (uint32_t h, TrackHeightMode m) bool VCATimeAxisView::marked_for_display () const { - return !_vca->presentation_info().hidden(); + return _vca && !_vca->presentation_info().hidden(); } bool VCATimeAxisView::set_marked_for_display (bool yn) { - if (yn == _vca->presentation_info().hidden()) { + if (_vca && (yn == _vca->presentation_info().hidden())) { _vca->presentation_info().set_hidden (!yn); return true; // things changed }