summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-11-13 02:19:04 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-11-13 02:19:04 +0000
commit3fa84d0caa2fb74471619cff2e44f5db3f0a12c6 (patch)
tree55159b5ad4afd54b86601ee7b922186a9517f54d /gtk2_ardour/mixer_strip.cc
parentcf55921aea8adec135535419febb8bbd0803f008 (diff)
add alt-i as a binding in both the editor and mixer windows to toggle the state of MIDI input on the selected track(s); in the mixer this will also operate on the strip under the mouse. fixes #4838
git-svn-id: svn://localhost/ardour2/branches/3.0@13475 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc20
1 files changed, 5 insertions, 15 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index c4410438f9..398edf1997 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -1915,22 +1915,12 @@ MixerStrip::input_active_button_release (GdkEventButton* ev)
return true;
}
- if (mt->input_active()) {
- if (Keyboard::modifier_state_contains (ev->state, Keyboard::ModifierMask (Keyboard::PrimaryModifier|Keyboard::SecondaryModifier))) {
- /* turn all other tracks using this input off */
- _session->set_exclusive_input_active (mt, false);
- } else {
- mt->set_input_active (false);
- }
+ boost::shared_ptr<RouteList> rl (new RouteList);
- } else {
- if (Keyboard::modifier_state_contains (ev->state, Keyboard::ModifierMask (Keyboard::PrimaryModifier|Keyboard::SecondaryModifier))) {
- /* turn all other tracks using this input on */
- _session->set_exclusive_input_active (mt, true);
- } else {
- mt->set_input_active (true);
- }
- }
+ rl->push_back (route());
+
+ _session->set_exclusive_input_active (rl, !mt->input_active(),
+ Keyboard::modifier_state_contains (ev->state, Keyboard::ModifierMask (Keyboard::PrimaryModifier|Keyboard::SecondaryModifier)));
return true;
}