summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_canvas.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2018-02-09 08:21:45 -0600
committerBen Loftis <ben@harrisonconsoles.com>2018-02-09 08:21:45 -0600
commitc6eab71435686a0ff4a244584b0a9b24282b73fc (patch)
treedf5dc165232090651c9865b31b242a4de9279554 /gtk2_ardour/editor_canvas.cc
parent70d8300cb285256784f543da6aaf076d76b5052b (diff)
new_snap: Snapped Cursor ( squashed commit )
Snapped Cursor is a line that follows the edit point, and indicates where the operation will occur. This replaces and extends the line that appears with the Cut tool. New associated preferences: snap_threshold and show_snap_cursor.
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r--gtk2_ardour/editor_canvas.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc
index 5aeed49f43..a60d3eab9c 100644
--- a/gtk2_ardour/editor_canvas.cc
+++ b/gtk2_ardour/editor_canvas.cc
@@ -217,6 +217,8 @@ Editor::initialize_canvas ()
playhead_cursor = new EditorCursor (*this, &Editor::canvas_playhead_cursor_event);
+ snapped_cursor = new EditorCursor (*this);
+
_canvas_drop_zone = new ArdourCanvas::Rectangle (hv_scroll_group, ArdourCanvas::Rect (0.0, 0.0, ArdourCanvas::COORD_MAX, 0.0));
/* this thing is transparent */
_canvas_drop_zone->set_fill (false);