summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r--gtk2_ardour/mixer_ui.cc48
1 files changed, 3 insertions, 45 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc
index 6f11e59900..b9b9eccaca 100644
--- a/gtk2_ardour/mixer_ui.cc
+++ b/gtk2_ardour/mixer_ui.cc
@@ -656,60 +656,18 @@ Mixer_UI::select_none ()
deselect_all_strip_processors();
}
- void
+void
Mixer_UI::select_next_strip ()
{
deselect_all_strip_processors();
- strips.sort (MixerStripSorter());
-
- if (_selection.empty()) {
- _selection.set (strips.front());
- return;
- }
-
- bool select_me = false;
-
- for (list<MixerStrip*>::iterator i = strips.begin(); i != strips.end(); ++i) {
-
- if (select_me) {
- _selection.set (*i);
- return;
- }
-
- if ((*i)->selected()) {
- select_me = true;
- }
- }
-
- _selection.set (strips.front());
+ _session->selection().select_next_stripable (true, false);
}
void
Mixer_UI::select_prev_strip ()
{
deselect_all_strip_processors();
- strips.sort (MixerStripSorter());
-
- if (_selection.empty()) {
- _selection.set (strips.back());
- return;
- }
-
- bool select_me = false;
-
- for (list<MixerStrip*>::reverse_iterator i = strips.rbegin(); i != strips.rend(); ++i) {
-
- if (select_me) {
- _selection.set (*i);
- return;
- }
-
- if ((*i)->selected()) {
- select_me = true;
- }
- }
-
- _selection.set (strips.back());
+ _session->selection().select_prev_stripable (true, false);
}
void