From 41eedb1f6385c6b433b56c0c403591ba07b9470c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 10 Jun 2009 01:23:53 +0000 Subject: [PATCH] Fix drag of region gain control points and lines. git-svn-id: svn://localhost/ardour2/branches/3.0@5149 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_drag.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index 370cc56643..5d5a2dc7e7 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -397,6 +397,10 @@ public: void motion (GdkEvent *, bool); void finished (GdkEvent *, bool); + bool active (Editing::MouseMode m) { + return (m == Editing::MouseGain); + } + private: ControlPoint* _point; @@ -414,6 +418,10 @@ public: void start_grab (GdkEvent *, Gdk::Cursor* c = 0); void motion (GdkEvent *, bool); void finished (GdkEvent *, bool); + + bool active (Editing::MouseMode) { + return true; + } private: