diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-11 22:54:22 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-11 22:54:22 -0400 |
commit | f208593249c7bc1f139809aa32c8aa6320782af0 (patch) | |
tree | 6a8d6bbd280e8ab7e651f82aa36a7ce0e638e5f6 /gtk2_ardour/editor_drag.cc | |
parent | 7caf517b27aa93df14519840224104fb8a1f12c1 (diff) | |
parent | 6ae4f104371ed433a79c8845de97428d964edd8b (diff) |
Merge branch 'cairocanvas' of git.ardour.org:ardour/ardour into cairocanvas
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 8822548ca0..250951f438 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -659,11 +659,7 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move) RegionView* rv = i->view; - if (rv->region()->locked() -#ifdef WITH_VIDEOTIMELINE - || rv->region()->video_locked() -#endif - ) { + if (rv->region()->locked() || rv->region()->video_locked()) { continue; } @@ -930,11 +926,7 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const /*changed /* insert the regions into their new playlists */ for (list<DraggingView>::const_iterator i = _views.begin(); i != _views.end(); ++i) { - if (i->view->region()->locked() -#ifdef WITH_VIDEOTIMELINE - || i->view->region()->video_locked() -#endif - ) { + if (i->view->region()->locked() || i->view->region()->video_locked()) { continue; } @@ -1013,11 +1005,7 @@ RegionMoveDrag::finished_no_copy ( RouteTimeAxisView* const dest_rtv = dynamic_cast<RouteTimeAxisView*> (_time_axis_views[i->time_axis_view]); double const dest_layer = i->layer; - if (rv->region()->locked() -#ifdef WITH_VIDEOTIMELINE - || rv->region()->video_locked() -#endif - ) { + if (rv->region()->locked() || rv->region()->video_locked()) { ++i; continue; } @@ -1611,8 +1599,6 @@ NoteResizeDrag::aborted (bool) } } -#ifdef WITH_VIDEOTIMELINE - AVDraggingView::AVDraggingView (RegionView* v) : view (v) { @@ -1624,16 +1610,12 @@ VideoTimeLineDrag::VideoTimeLineDrag (Editor* e, ArdourCanvas::Item* i) { DEBUG_TRACE (DEBUG::Drags, "New VideoTimeLineDrag\n"); - /* create a list of regions to move along */ -#if 1 /* all reagions -- with video_locked() */ RegionSelection rs; TrackViewList empty; empty.clear(); _editor->get_regions_after(rs, (framepos_t) 0, empty); std::list<RegionView*> views = rs.by_layer(); -#else /* selected regions -- with video_locked() */ - std::list<RegionView*> views = _editor->selection->regions.by_layer(); -#endif + for (list<RegionView*>::iterator i = views.begin(); i != views.end(); ++i) { RegionView* rv = (*i); if (!rv->region()->video_locked()) { @@ -1777,7 +1759,6 @@ VideoTimeLineDrag::aborted (bool) i->view->region()->set_position(i->initial_position); } } -#endif TrimDrag::TrimDrag (Editor* e, ArdourCanvas::Item* i, RegionView* p, list<RegionView*> const & v, bool preserve_fade_anchor) : RegionDrag (e, i, p, v) |