Use sigc::slots rather than templates + function ptrs for a foreach_region and foreach_crossfade.

git-svn-id: svn://localhost/ardour2/branches/3.0@5118 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-06-03 00:23:34 +00:00
parent 27915ccdc0
commit a75e811edb
9 changed files with 46 additions and 64 deletions

View file

@ -243,8 +243,8 @@ MidiStreamView::redisplay_diskstream ()
_data_note_min = 127;
_data_note_max = 0;
_trackview.get_diskstream()->playlist()->foreach_region(
static_cast<StreamView*>(this),
&StreamView::update_contents_metrics);
sigc::mem_fun (*this, &StreamView::update_contents_metrics)
);
// No notes, use default range
if (!_range_dirty) {
@ -266,8 +266,8 @@ MidiStreamView::redisplay_diskstream ()
// Add and display region views, and flag them as valid
_trackview.get_diskstream()->playlist()->foreach_region(
static_cast<StreamView*>(this),
&StreamView::add_region_view);
sigc::mem_fun (*this, &StreamView::add_region_view)
);
// Stack regions by layer, and remove invalid regions
layer_regions();