use new RouteGroup property names
[ardour.git] / gtk2_ardour / editor_drag.cc
index c29fa230d44eac3997dfc55383c949ef384a2cf9..87d11013457a902daa231dc01e62761948b24c61 100644 (file)
@@ -527,22 +527,7 @@ Drag::add_midi_region (MidiTimeAxisView* view, bool commit)
 
 struct PresentationInfoTimeAxisViewSorter {
        bool operator() (TimeAxisView* a, TimeAxisView* b) {
-               RouteTimeAxisView* ra = dynamic_cast<RouteTimeAxisView*> (a);
-               RouteTimeAxisView* rb = dynamic_cast<RouteTimeAxisView*> (b);
-               /* anything not a route goes at the end */
-               if (!ra && rb) {
-                       return false;
-               }
-               if (!rb && ra) {
-                       return true;
-               }
-               if (!ra && !rb) {
-                       /* XXXX pointer comparison. Should use
-                       presentation_info in a time axis view
-                       */
-                       return a < b;
-               }
-               return ra->route()->presentation_info () < rb->route()->presentation_info();
+               return a->presentation_info() < b->presentation_info();
        }
 };
 
@@ -5125,7 +5110,7 @@ SelectionDrag::motion (GdkEvent* event, bool first_move)
                        TrackViewList grouped_add = new_selection;
                        for (TrackViewList::const_iterator i = new_selection.begin(); i != new_selection.end(); ++i) {
                                RouteTimeAxisView *n = dynamic_cast<RouteTimeAxisView *>(*i);
-                               if ( n && n->route()->route_group() && n->route()->route_group()->is_active() && n->route()->route_group()->enabled_property (ARDOUR::Properties::select.property_id) ) {
+                               if ( n && n->route()->route_group() && n->route()->route_group()->is_active() && n->route()->route_group()->enabled_property (ARDOUR::Properties::group_select.property_id) ) {
                                        for (TrackViewList::const_iterator j = all_tracks.begin(); j != all_tracks.end(); ++j) {
                                                RouteTimeAxisView *check = dynamic_cast<RouteTimeAxisView *>(*j);
                                                if ( check && (n != check) && (check->route()->route_group() == n->route()->route_group()) )