summaryrefslogtreecommitdiff
path: root/gtk2_ardour/note.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-03-06 13:26:55 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-03-06 13:26:55 -0500
commit72517680cc89a88ea76a3891b69149005f738d02 (patch)
tree553268a7190ff9f5410367bfede766285c812000 /gtk2_ardour/note.cc
parent37de3e2f67b63e7f0972589c9d33df2df5be9d12 (diff)
use CANVAS_DEBUG_NAME instead of explicit #ifdef to set canvas item name
Diffstat (limited to 'gtk2_ardour/note.cc')
-rw-r--r--gtk2_ardour/note.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/gtk2_ardour/note.cc b/gtk2_ardour/note.cc
index 1a77709a58..3726d2f082 100644
--- a/gtk2_ardour/note.cc
+++ b/gtk2_ardour/note.cc
@@ -19,7 +19,10 @@
*/
#include "evoral/Note.hpp"
+
#include "canvas/rectangle.h"
+#include "canvas/debug.h"
+
#include "note.h"
#include "midi_region_view.h"
#include "public_editor.h"
@@ -28,17 +31,11 @@ using namespace ARDOUR;
using namespace ArdourCanvas;
Note::Note (
- MidiRegionView& region,
- Group* group,
- const boost::shared_ptr<NoteType> note,
- bool with_events
- )
+ MidiRegionView& region, Group* group, const boost::shared_ptr<NoteType> note, bool with_events)
: NoteBase (region, with_events, note)
, _rectangle (new ArdourCanvas::Rectangle (group))
{
-#ifdef CANVAS_DEBUG
- _rectangle->name = "note";
-#endif
+ CANVAS_DEBUG_NAME (_rectangle, "note");
set_item (_rectangle);
}