Fix drag of region gain control points and lines.
authorCarl Hetherington <carl@carlh.net>
Wed, 10 Jun 2009 01:23:53 +0000 (01:23 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 10 Jun 2009 01:23:53 +0000 (01:23 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5149 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_drag.h

index 370cc566436aef6ebd888114c8acf61f3f920079..5d5a2dc7e7645add56e8212ca2811ff83179a23f 100644 (file)
@@ -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: