13
0

only generate some current canvas debug output when CANVAS_DEBUG is defined, to quieten things down

This commit is contained in:
Paul Davis 2013-09-25 10:38:04 -04:00
parent 67bb9a732a
commit 18850253e9
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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++;