diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-13 17:15:23 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-13 18:43:53 -0400 |
commit | f7844f48937fbb3a7744c131304ab8dc8c305580 (patch) | |
tree | 3b021737f69ac53f6c82f491ea283177b602cbb1 /gtk2_ardour/editor_canvas.cc | |
parent | f3121131632239c106058edc138ae95e847f1f6a (diff) |
do most of the work related to adding new anchored trim cursors (but debugging/analysis continues)
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index f962cb4ff7..12f119c711 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -904,6 +904,25 @@ Editor::set_canvas_cursor (Gdk::Cursor* cursor, bool save) } } +void +Editor::push_canvas_cursor (Gdk::Cursor* cursor) +{ + if (cursor) { + _cursor_stack.push (cursor); + set_canvas_cursor (cursor, false); + } +} + +void +Editor::pop_canvas_cursor () +{ + if (!_cursor_stack.empty()) { + Gdk::Cursor* cursor = _cursor_stack.top (); + _cursor_stack.pop (); + set_canvas_cursor (cursor, false); + } +} + bool Editor::track_canvas_key_press (GdkEventKey*) { |