diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-07 06:27:01 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-07 07:05:43 -0400 |
commit | 7ec397c0198674de782bfac083e59e3dc8390eb7 (patch) | |
tree | 13fdb32cb2a16d1a254b251f4df27d936e13b34b /gtk2_ardour/mouse_cursors.cc | |
parent | 8381c10b599f54d2be92fc00d5b5f009b079cb1a (diff) |
add basics of Cut mouse mode, no functionality yet. Icon images are still required
Diffstat (limited to 'gtk2_ardour/mouse_cursors.cc')
-rw-r--r-- | gtk2_ardour/mouse_cursors.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/mouse_cursors.cc b/gtk2_ardour/mouse_cursors.cc index 4ba5c66688..13cf74f780 100644 --- a/gtk2_ardour/mouse_cursors.cc +++ b/gtk2_ardour/mouse_cursors.cc @@ -26,6 +26,7 @@ using namespace ARDOUR_UI_UTILS; MouseCursors::MouseCursors () : cross_hair (0) + , scissors (0) , trimmer (0) , right_side_trim (0) , anchored_right_side_trim (0) @@ -70,6 +71,7 @@ void MouseCursors::drop_all () { delete cross_hair; cross_hair = 0; + delete scissors; scissors = 0; delete trimmer; trimmer = 0; delete right_side_trim; right_side_trim = 0; delete anchored_right_side_trim; anchored_right_side_trim = 0; @@ -158,6 +160,11 @@ MouseCursors::set_cursor_set (const std::string& name) } { + RefPtr<Pixbuf> p (::get_icon ("scissors", _cursor_set)); + scissors = new Cursor (Display::get_default(), p, 5, 0); + } + + { RefPtr<Pixbuf> p (::get_icon ("grabber", _cursor_set)); grabber = new Cursor (Display::get_default(), p, 5, 0); } |