diff options
author | Robin Gareus <robin@gareus.org> | 2019-03-01 16:51:08 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-03-01 16:51:08 +0100 |
commit | 94d3da7e09a70e4384dce7e92b27f3dd3abb385b (patch) | |
tree | 8ea0f603bbeda12fa3de1eca13d55016f5c05e7b /gtk2_ardour/vca_time_axis.cc | |
parent | 9836304e3eb60bbe20e326c0323beee7e9252e65 (diff) |
GUI updates to handle monitor-section changes
This fixes various MS related action sensitivity issues, as well
as action-states.
Also manually adding a monitor-section to a session now always
immediately shows it, regardless of prior ToggleMonitorSection
visibility.
Diffstat (limited to 'gtk2_ardour/vca_time_axis.cc')
-rw-r--r-- | gtk2_ardour/vca_time_axis.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/vca_time_axis.cc b/gtk2_ardour/vca_time_axis.cc index efa1c3cdea..d4394a65a2 100644 --- a/gtk2_ardour/vca_time_axis.cc +++ b/gtk2_ardour/vca_time_axis.cc @@ -113,6 +113,8 @@ VCATimeAxisView::VCATimeAxisView (PublicEditor& ed, Session* s, ArdourCanvas::Ca controls_ebox.set_name (controls_base_unselected_name); time_axis_frame.set_name (controls_base_unselected_name); + s->MonitorBusAddedOrRemoved.connect (*this, invalidator (*this), boost::bind (&VCATimeAxisView::set_button_names, this), gui_context()); + 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)); @@ -135,7 +137,7 @@ VCATimeAxisView::parameter_changed (std::string const & p) { if (p == "track-name-number") { update_track_number_visibility(); - } else if (p == "use-monitor-bus" || p == "solo-control-is-listen-control" || p == "listen-position") { + } else if (p == "solo-control-is-listen-control" || p == "listen-position") { set_button_names (); } } |