minor state tweaks for VCA time axis solo+mute buttons
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 21 May 2016 20:58:19 +0000 (16:58 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 May 2016 19:30:44 +0000 (15:30 -0400)
gtk2_ardour/vca_time_axis.cc

index 8510401d392ed446ea319a590333a97637ea64a9..45f9480b5135cac4f93020513c771bce61814b43 100644 (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));