+ Session* s = shp.session();
+
+ if (!s) {
+ /* too early ... session handle provider doesn't know about the
+ session yet.
+ */
+ return;
+ }
+
+ PropertyChange pc;
+ pc.add (Properties::selected);
+
+ CoreSelection::StripableAutomationControls sc;
+ s->selection().get_stripables (sc);
+
+ for (AxisViewSelection::iterator a = axes.begin(); a != axes.end(); ++a) {
+ (*a)->set_selected (false);
+ }
+
+ axes.clear ();
+
+ for (CoreSelection::StripableAutomationControls::const_iterator i = sc.begin(); i != sc.end(); ++i) {
+ AxisView* av = avp.axis_view_by_stripable ((*i).stripable);
+ if (av) {
+ axes.insert (av);
+ av->set_selected (true);
+ }
+ }