summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_selection.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-03 22:42:22 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-03 22:42:22 +0000
commita3f7f86d9b8cee4183e9da6c2f8f6cfd4ee26969 (patch)
tree111e1ebda233178452a426c47f2bb6f86433e4b1 /gtk2_ardour/editor_selection.cc
parent06ce1ae2133acf3986f3497f6a01649ee37d64ef (diff)
Factor regions list out of Editor.
git-svn-id: svn://localhost/ardour2/branches/3.0@5312 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r--gtk2_ardour/editor_selection.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index 7c70400e39..3b53a2d821 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -34,6 +34,7 @@
#include "audio_streamview.h"
#include "automation_line.h"
#include "control_point.h"
+#include "editor_regions.h"
#include "i18n.h"
@@ -878,15 +879,15 @@ Editor::sensitize_the_right_region_actions (bool have_selected_regions)
void
Editor::region_selection_changed ()
{
- region_list_change_connection.block(true);
+ _regions->block_change_connection (true);
editor_regions_selection_changed_connection.block(true);
-
- region_list_display.get_selection()->unselect_all();
+
+ _regions->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);
+ _regions->set_selected (selection->regions);
}
@@ -894,7 +895,7 @@ Editor::region_selection_changed ()
zoomed_to_region = false;
- region_list_change_connection.block(false);
+ _regions->block_change_connection (false);
editor_regions_selection_changed_connection.block(false);
}