diff options
author | Robin Gareus <robin@gareus.org> | 2019-11-09 01:35:55 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-11-09 05:59:55 +0100 |
commit | a701882e665d71be9fdb14352332dafdc66e664b (patch) | |
tree | 00aea0f7dafc3498b0350eec264f8023fc03354c /gtk2_ardour/editor_canvas.cc | |
parent | 3cecc3d26bb746aa8b2e6d22811e936e8925d61a (diff) |
Add convenience methods to test for active drags
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 2486078a25..437bb3e526 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -588,6 +588,18 @@ Editor::maybe_autoscroll (bool allow_horiz, bool allow_vert, bool from_headers) } bool +Editor::drag_active () const +{ + return _drags->active(); +} + +bool +Editor::preview_video_drag_active () const +{ + return false; +} + +bool Editor::autoscroll_active () const { return autoscroll_connection.connected (); |