diff options
author | Carl Hetherington <carl@carlh.net> | 2009-07-03 22:42:22 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-07-03 22:42:22 +0000 |
commit | a3f7f86d9b8cee4183e9da6c2f8f6cfd4ee26969 (patch) | |
tree | 111e1ebda233178452a426c47f2bb6f86433e4b1 /gtk2_ardour/editor_canvas_events.cc | |
parent | 06ce1ae2133acf3986f3497f6a01649ee37d64ef (diff) |
Factor regions list out of Editor.
git-svn-id: svn://localhost/ardour2/branches/3.0@5312 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas_events.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas_events.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_canvas_events.cc b/gtk2_ardour/editor_canvas_events.cc index a7fbdec926..4a22c2bda7 100644 --- a/gtk2_ardour/editor_canvas_events.cc +++ b/gtk2_ardour/editor_canvas_events.cc @@ -47,6 +47,7 @@ #include "interactive-item.h" #include "editor_drag.h" #include "midi_time_axis.h" +#include "editor_regions.h" #include "i18n.h" @@ -929,11 +930,7 @@ Editor::track_canvas_drag_motion (Glib::RefPtr<Gdk::DragContext> const & c, int return true; } - list<boost::shared_ptr<Region> > regions; - TreeView* source; - region_list_display.get_object_drag_data (regions, &source); - assert (regions.size() == 1); - boost::shared_ptr<Region> region = regions.front (); + boost::shared_ptr<Region> region = _regions->get_dragged_region (); boost::shared_ptr<Region> region_copy = RegionFactory::create (region); |