new LocateRollLocate event, used to implement play-at-edit-point-and-return; other...
[ardour.git] / gtk2_ardour / editor_route_list.cc
index 86e516d17c9122678c469e5fda1766bdf6e8e711..ff9d55f3f8ac766e06bc2f324a2a79add6a0670f 100644 (file)
@@ -38,6 +38,7 @@ using namespace sigc;
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtk;
+using namespace Glib;
 
 void
 Editor::handle_new_route (Session::RouteList& routes)
@@ -546,3 +547,21 @@ Editor::route_list_delete (const Gtk::TreeModel::Path& path)
        session->set_remote_control_ids();
        redisplay_route_list ();
 }
+
+
+void  
+Editor::route_list_display_drag_data_received (const RefPtr<Gdk::DragContext>& context,
+                                               int x, int y, 
+                                               const SelectionData& data,
+                                               guint info, guint time)
+{
+       cerr << "RouteLD::dddr target = " << data.get_target() << endl;
+       
+       if (data.get_target() == "GTK_TREE_MODEL_ROW") {
+               cerr << "Delete drag data drop to treeview\n";
+               route_list_display.on_drag_data_received (context, x, y, data, info, time);
+               return;
+       }
+       cerr << "some other kind of drag\n";
+       context->drag_finish (true, false, time);
+}