Oofus's work on region lists: highlight selected canvas regions on the region list

git-svn-id: svn://localhost/ardour2/branches/3.0@4414 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sampo Savolainen 2009-01-18 10:41:56 +00:00
parent c174fa6174
commit ef038c1a84
6 changed files with 117 additions and 26 deletions

View file

@ -852,13 +852,24 @@ Editor::sensitize_the_right_region_actions (bool have_selected_regions)
void
Editor::region_selection_changed ()
{
region_list_change_connection.block(true);
editor_regions_selection_changed_connection.block(true);
region_list_display.get_selection()->unselect_all();
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
(*i)->set_selected_regionviews (selection->regions);
set_selected_in_region_list(selection->regions);
}
sensitize_the_right_region_actions (!selection->regions.empty());
zoomed_to_region = false;
region_list_change_connection.block(false);
editor_regions_selection_changed_connection.block(false);
}
void