13
0
livetrax/gtk2_ardour/canvas-hit.cc
David Robillard bb9cc45cd2 Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red.  I don't know the emacs equivalent...


git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-14 16:10:01 +00:00

30 lines
492 B
C++

#include "canvas-note.h"
#include "midi_region_view.h"
#include "public_editor.h"
#include "evoral/Note.hpp"
#include "utils.h"
using namespace ARDOUR;
namespace Gnome {
namespace Canvas {
bool
CanvasHit::on_event(GdkEvent* ev)
{
if (!_region.get_trackview().editor().canvas_note_event (ev, this)) {
return CanvasNoteEvent::on_event (ev);
} else {
return true;
}
}
void
CanvasHit::move_event(double dx, double dy)
{
move_by (dx, dy);
}
} // namespace Gnome
} // namespace Canvas