From a701882e665d71be9fdb14352332dafdc66e664b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 9 Nov 2019 01:35:55 +0100 Subject: Add convenience methods to test for active drags --- gtk2_ardour/editor_canvas.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gtk2_ardour/editor_canvas.cc') 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 @@ -587,6 +587,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 { -- cgit v1.2.3