Refactor so that all the locate-related stuff in CursorDrag is in one method. Also...
[ardour.git] / gtk2_ardour / editor_canvas.cc
index beace83c3fbad2d9c89cb963847ec1a06c245a0b..f52f8852caad03b8e39cf3299e5b41701fb1e087 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "ardour_ui.h"
 #include "editor.h"
+#include "global_signals.h"
 #include "waveview.h"
 #include "simplerect.h"
 #include "simpleline.h"
@@ -747,7 +748,7 @@ Editor::stop_canvas_autoscroll ()
 bool
 Editor::left_track_canvas (GdkEventCrossing */*ev*/)
 {
-        DropDownKeys ();
+       DropDownKeys ();
        set_entered_track (0);
        set_entered_regionview (0);
        reset_canvas_action_sensitivity (false);
@@ -928,9 +929,9 @@ Editor::horizontal_position () const
 void
 Editor::set_canvas_cursor (Gdk::Cursor* cursor, bool save)
 {
-        if (save) {
-                current_canvas_cursor = cursor;
-        }
+       if (save) {
+               current_canvas_cursor = cursor;
+       }
 
        if (is_drawable()) {
                track_canvas->get_window()->set_cursor (*cursor);