+void
+Mixer_UI::move_stripable_into_view (boost::shared_ptr<ARDOUR::Stripable> s)
+{
+ if (!scroller.get_hscrollbar()) {
+ return;
+ }
+ if (s->presentation_info().special () || s->presentation_info().flag_match (PresentationInfo::VCA)) {
+ return;
+ }
+#ifdef MIXBUS
+ if (s->mixbus ()) {
+ return;
+ }
+#endif
+ bool found = false;
+ int x0 = 0;
+ for (list<MixerStrip *>::const_iterator i = strips.begin(); i != strips.end(); ++i) {
+ if ((*i)->route() == s) {
+ int y;
+ found = true;
+ (*i)->translate_coordinates (strip_packer, 0, 0, x0, y);
+ break;
+ }
+ }
+ if (!found) {
+ return;
+ }
+
+ Adjustment* adj = scroller.get_hscrollbar()->get_adjustment();
+ scroller.get_hscrollbar()->set_value (max (adj->get_lower(), min (adj->get_upper(), x0 - 1.0)));
+}
+