more hacking on the processor list and processor box - note that ctrl-x/c/v now work...
[ardour.git] / libs / gtkmm2ext / gtkmm2ext / dndtreeview.h
index 5464920a59b89d6bea716d1f617d00af7cd492d7..629537767250634083a931773d33b13a650e6e48 100644 (file)
@@ -91,7 +91,7 @@ class DnDTreeView : public DnDTreeViewBase
        DnDTreeView() {} 
        ~DnDTreeView() {}
 
-       sigc::signal<void,const std::list<DataType>&,Gtk::TreeView*,Glib::RefPtr<Gdk::DragContext>&> signal_drop;
+       sigc::signal<void,const std::list<DataType>&,Gtk::TreeView*,int,int,Glib::RefPtr<Gdk::DragContext>&> signal_drop;
 
        void on_drag_data_get(const Glib::RefPtr<Gdk::DragContext>& context, Gtk::SelectionData& selection_data, guint info, guint time) {
                if (selection_data.get_target() == "GTK_TREE_MODEL_ROW") {
@@ -126,7 +126,7 @@ class DnDTreeView : public DnDTreeViewBase
 
                } else if (selection_data.get_target() == object_type) {
                        
-                       end_object_drag (const_cast<Glib::RefPtr<Gdk::DragContext>& > (context));
+                       end_object_drag (const_cast<Glib::RefPtr<Gdk::DragContext>& > (context), x, y);
 
                } else {
                        /* some kind of target type added by the app, which will be handled by a signal handler */
@@ -152,11 +152,11 @@ class DnDTreeView : public DnDTreeViewBase
        }
 
   private:
-       void end_object_drag (Glib::RefPtr<Gdk::DragContext>& context) {
+       void end_object_drag (Glib::RefPtr<Gdk::DragContext>& context, int x, int y) {
                std::list<DataType> l;
                Gtk::TreeView* source;
                get_object_drag_data (l, &source);
-               signal_drop (l, source, context);
+               signal_drop (l, source, x, y, context);
        }
 
 };