diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-07 15:05:52 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-07 15:05:52 +0000 |
commit | cd32030762351aa25c39c9678753d7c6d78a5fea (patch) | |
tree | cc7ae4349022532dc035ff2c57a014a3c6c5f478 /gtk2_ardour/canvas-hit.cc | |
parent | 2d81a5636dcf5532769a1bf4ddaafb2fa91b990a (diff) |
fix up dragging notes in percussive mode
git-svn-id: svn://localhost/ardour2/branches/3.0@5749 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-hit.cc')
-rw-r--r-- | gtk2_ardour/canvas-hit.cc | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/gtk2_ardour/canvas-hit.cc b/gtk2_ardour/canvas-hit.cc index c9908ac60c..23a9a19137 100644 --- a/gtk2_ardour/canvas-hit.cc +++ b/gtk2_ardour/canvas-hit.cc @@ -22,39 +22,7 @@ CanvasHit::on_event(GdkEvent* ev) void CanvasHit::move_event(double dx, double dy) { - move (dx, dy); - -#if 0 - cerr << "Move event by " << dx << " " << dy << endl; - - points->coords[0] += dx; - points->coords[1] += dy; - - points->coords[2] += dx; - points->coords[3] += dy; - - points->coords[4] += dx; - points->coords[5] += dy; - - points->coords[6] += dx; - points->coords[7] += dy; - - cerr << "Coords now " << endl - << '\t' << points->coords[0] << ", " << points->coords[1] << endl - << '\t' << points->coords[2] << ", " << points->coords[3] << endl - << '\t' << points->coords[4] << ", " << points->coords[5] << endl - << '\t' << points->coords[6] << ", " << points->coords[7] << endl - ; - - if (_text) { - _text->property_x() = _text->property_x() + dx; - _text->property_y() = _text->property_y() + dy; - } - - hide (); - show (); - // request_update (); -#endif + move_by (dx, dy); } } // namespace Gnome |