more games with selection

git-svn-id: svn://localhost/ardour2/trunk@1360 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-01-18 16:45:29 +00:00
parent 058911a1d8
commit f4fe4d36b1
10 changed files with 622 additions and 583 deletions

View file

@ -78,12 +78,12 @@ bool RegionSelection::contains (RegionView* rv) const
return find (begin(), end(), rv) != end();
}
void
bool
RegionSelection::add (RegionView* rv)
{
if (contains (rv)) {
/* we already have it */
return;
return false;
}
rv->RegionViewGoingAway.connect (mem_fun(*this, &RegionSelection::remove_it));
@ -101,6 +101,8 @@ RegionSelection::add (RegionView* rv)
// add to layer sorted list
add_to_layer (rv);
return true;
}
void