diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-21 16:58:19 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:44 -0400 |
commit | 30d0b2a3546e50d359e712f239a16e08f37d38c7 (patch) | |
tree | 3991aca1044414bbb1bc73ec4fe7d7b29f51b72e /gtk2_ardour/vca_time_axis.cc | |
parent | 531dca486d8fd4296f3b5823c970da757224eff2 (diff) |
minor state tweaks for VCA time axis solo+mute buttons
Diffstat (limited to 'gtk2_ardour/vca_time_axis.cc')
-rw-r--r-- | gtk2_ardour/vca_time_axis.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/vca_time_axis.cc b/gtk2_ardour/vca_time_axis.cc index 8510401d39..45f9480b51 100644 --- a/gtk2_ardour/vca_time_axis.cc +++ b/gtk2_ardour/vca_time_axis.cc @@ -48,11 +48,13 @@ VCATimeAxisView::VCATimeAxisView (PublicEditor& ed, Session* s, ArdourCanvas::Ca solo_button.set_name ("solo button"); set_tooltip (solo_button, _("Solo slaves")); solo_button.signal_button_release_event().connect (sigc::mem_fun (*this, &VCATimeAxisView::solo_release), false); + mute_button.unset_flags (Gtk::CAN_FOCUS); mute_button.set_name ("mute button"); mute_button.set_text (_("M")); set_tooltip (mute_button, _("Mute slaves")); mute_button.signal_button_release_event().connect (sigc::mem_fun (*this, &VCATimeAxisView::mute_release), false); + solo_button.unset_flags (Gtk::CAN_FOCUS); drop_button.set_name ("mute button"); drop_button.set_text (_("D")); @@ -144,6 +146,9 @@ VCATimeAxisView::set_vca (boost::shared_ptr<VCA> v) _vca->mute_control()->Changed.connect (vca_connections, invalidator (*this), boost::bind (&VCATimeAxisView::update_mute_display, this), gui_context()); _vca->DropReferences.connect (vca_connections, invalidator (*this), boost::bind (&VCATimeAxisView::self_delete, this), gui_context()); + solo_button.set_controllable (_vca->solo_control()); + mute_button.set_controllable (_vca->mute_control()); + /* VCA number never changes */ number_label.set_text (to_string (_vca->number(), std::dec)); |