13
0

minor state tweaks for VCA time axis solo+mute buttons

This commit is contained in:
Paul Davis 2016-05-21 16:58:19 -04:00
parent 531dca486d
commit 30d0b2a354

View File

@ -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));