diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-30 20:17:44 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-30 20:17:44 +0000 |
commit | d6314e3253b88d0b53a59f4f593520b3e2ff963e (patch) | |
tree | b5c82277d7a319aa9c97d423f3619066702a8ea4 /gtk2_ardour/stereo_panner.cc | |
parent | f151d8231d6fcaa4a7ecf260179b71317681b41f (diff) |
add back MIDI Learn for stereo panner
git-svn-id: svn://localhost/ardour2/branches/3.0@8394 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/stereo_panner.cc')
-rw-r--r-- | gtk2_ardour/stereo_panner.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk2_ardour/stereo_panner.cc b/gtk2_ardour/stereo_panner.cc index 86cb794f7b..7ab526f8fa 100644 --- a/gtk2_ardour/stereo_panner.cc +++ b/gtk2_ardour/stereo_panner.cc @@ -67,6 +67,8 @@ StereoPanner::StereoPanner (boost::shared_ptr<PBD::Controllable> position, boost , detented (false) , drag_data_window (0) , drag_data_label (0) + , position_binder (position) + , width_binder (width) { if (!have_colors) { set_colors (); @@ -294,6 +296,19 @@ StereoPanner::on_button_press_event (GdkEventButton* ev) accumulated_delta = 0; detented = false; + /* Let the binding proxies get first crack at the press event + */ + + if (ev->y < 20) { + if (position_binder.button_press_handler (ev)) { + return true; + } + } else { + if (width_binder.button_press_handler (ev)) { + return true; + } + } + if (ev->button != 1) { return false; } |