diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-12-18 20:54:46 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-12-18 20:54:46 +0000 |
commit | 6bcec5f82091c860e1625bdc68b0ee4075e84046 (patch) | |
tree | a524880bd2324e79c4858126a503977f3ff406ba /gtk2_ardour/editor_route_list.cc | |
parent | 5119d48267be90aa4af3daa91f8bb72e6ab57c2c (diff) |
new LocateRollLocate event, used to implement play-at-edit-point-and-return; other fixes from the OS X world
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2792 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_route_list.cc')
-rw-r--r-- | gtk2_ardour/editor_route_list.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_route_list.cc b/gtk2_ardour/editor_route_list.cc index 86e516d17c..ff9d55f3f8 100644 --- a/gtk2_ardour/editor_route_list.cc +++ b/gtk2_ardour/editor_route_list.cc @@ -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); +} |