fix note 15897 on #5589 - only use fader cursor for region gain line when in mouse...
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 21 Oct 2014 15:50:06 +0000 (11:50 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 22 Oct 2014 13:14:53 +0000 (09:14 -0400)
gtk2_ardour/editor_canvas.cc

index 5f1f3edb47bd69818d6255578ce11ebafe611917..d88ce77a256a729c50b64ac88f2d00f3bb080cb7 100644 (file)
@@ -1340,7 +1340,7 @@ Editor::choose_canvas_cursor_on_entry (GdkEventCrossing* /*event*/, ItemType typ
                        cursor = _cursors->fader;
                        break;
                case GainLineItem:
-                       cursor = _cursors->fader;
+                       cursor = which_track_cursor ();
                        break;
                case AutomationLineItem:
                        cursor = _cursors->cross_hair;
@@ -1395,6 +1395,24 @@ Editor::choose_canvas_cursor_on_entry (GdkEventCrossing* /*event*/, ItemType typ
                default:
                        break;
                }
+
+       } else if (mouse_mode == MouseGain) {
+               
+               /* ControlPointItem is not really specific to region gain mode
+                  but it is the same cursor so don't worry about this for now.
+                  The result is that we'll see the fader cursor if we enter
+                  non-region-gain-line control points while in MouseGain
+                  mode, even though we can't edit them in this mode.
+               */
+
+               switch (type) {
+               case GainLineItem:
+               case ControlPointItem:
+                       cursor = _cursors->fader;
+                       break;
+               default:
+                       break;
+               }
        }
 
        switch (type) {