summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-09-25 10:38:04 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-09-25 10:38:04 -0400
commit18850253e9f0034fad132e0da07a2651ce041450 (patch)
treef54fe7786c5220cb65714f0f23df19066c03639c
parent67bb9a732aaa4a01bb706bca743c3673314b44b2 (diff)
only generate some current canvas debug output when CANVAS_DEBUG is defined, to quieten things down
-rw-r--r--libs/canvas/canvas.cc6
-rw-r--r--libs/canvas/group.cc2
2 files changed, 6 insertions, 2 deletions
diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc
index b62393b334..908af16065 100644
--- a/libs/canvas/canvas.cc
+++ b/libs/canvas/canvas.cc
@@ -342,17 +342,19 @@ GtkCanvas::enter_leave_items (Duple const & point, int state)
*/
cerr << "E/L: " << items.size() << " to check at " << point << endl;
+#ifdef CANVAS_DEBUG
for (vector<Item const*>::const_reverse_iterator i = items.rbegin(); i != items.rend(); ++i) {
cerr << '\t' << (*i)->whatami() << ' ' << (*i)->name << " ignore ? " << (*i)->ignore_events() << " current ? " << (_current_item == (*i)) << endl;
}
+#endif
cerr << "------------\n";
for (vector<Item const*>::const_reverse_iterator i = items.rbegin(); i != items.rend(); ++i) {
Item const * new_item = *i;
-
+#ifdef CANVAS_DEBUG
cerr << "\tE/L check out " << new_item->whatami() << ' ' << new_item->name << " ignore ? " << new_item->ignore_events() << " current ? " << (_current_item == new_item) << endl;
-
+#endif
if (new_item->ignore_events()) {
cerr << "continue1\n";
continue;
diff --git a/libs/canvas/group.cc b/libs/canvas/group.cc
index 9a846dfcf2..63754ae72f 100644
--- a/libs/canvas/group.cc
+++ b/libs/canvas/group.cc
@@ -295,6 +295,7 @@ Group::add_items_at_point (Duple const point, vector<Item const *>& items) const
void
Group::dump (ostream& o) const
{
+#ifdef CANVAS_DEBUG
o << _canvas->indent();
o << "Group " << this << " [" << name << ']';
o << " @ " << position();
@@ -311,6 +312,7 @@ Group::dump (ostream& o) const
}
o << endl;
+#endif
ArdourCanvas::dump_depth++;