diff options
author | Robin Gareus <robin@gareus.org> | 2020-05-22 17:35:55 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-05-22 17:35:55 +0200 |
commit | 534838995d00671aaea67e1ee0cee92b5c8a5d41 (patch) | |
tree | 3700c3359313d4bd53bf8200c248c0b3a9702ab7 /gtk2_ardour | |
parent | a4a96f7556d4fca1b1b9a9005db6e11e349ded92 (diff) |
Allow MIDI learn on inline toggle buttons
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 9194b5c5db..d604abface 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -884,13 +884,14 @@ ProcessorEntry::Control::Control (ProcessorEntry& e,boost::shared_ptr<Automation , _visible (false) , _name (n) { - _slider.set_controllable (c); box.set_padding(0, 0, 4, 4); if (c->toggled()) { _button.set_text (_name); _button.set_led_left (true); _button.set_name ("processor control button"); + _button.set_controllable (c); + box.add (_button); _button.show (); @@ -909,6 +910,7 @@ ProcessorEntry::Control::Control (ProcessorEntry& e,boost::shared_ptr<Automation _slider.set_name ("ProcessorControlSlider"); _slider.set_text (_name); + _slider.set_controllable (c); box.add (_slider); _slider.show (); |