diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-02-19 13:16:02 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-02-19 23:25:24 -0500 |
commit | 06e3b7da5d57d5c7be7a90e19f4e7f9de0713cf7 (patch) | |
tree | 8c2d476722a7e4ae017b9542340b9338b70d761a /gtk2_ardour/editor_drag.cc | |
parent | 58a8d50bdcf7659931b6f82d20fa0a2c2d1fd273 (diff) |
Revert "add a hack to deal with device discovery race, in which the devices were not actually known to be ready before the last update_surfaces() call (which is where binding between strips and routes occurs) ; add support for Mackie Control touch on/off messages"
This reverts commit 06a25ffd5695697db9869a19e46c2f93c6c17458.
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 7ba7b5207d..d8209d4b51 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -3318,25 +3318,10 @@ LineDrag::motion (GdkEvent* event, bool) } void -LineDrag::finished (GdkEvent* event, bool movement_occured) +LineDrag::finished (GdkEvent* event, bool) { - if (movement_occured) { - motion (event, false); - _line->end_drag (false, 0); - } else { - /* add a new control point on the line */ - - AutomationTimeAxisView* atv; - - _line->end_drag (false, 0); - - if ((atv = dynamic_cast<AutomationTimeAxisView*>(_editor->clicked_axisview)) != 0) { - framepos_t where = _editor->event_frame (event, 0, 0); - std::cerr << "Add new point @ " << where << ", " << _drags->current_pointer_y() << std::endl; - atv->add_automation_event (event, where, _drags->current_pointer_y(), false); - } - } - + motion (event, false); + _line->end_drag (false, 0); _editor->session()->commit_reversible_command (); } |