diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-15 20:29:02 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-07-15 20:29:02 +0000 |
commit | 939cff515018f9a5123e90a182dec56efdd7c508 (patch) | |
tree | 0be961b669f04052d69b804b9b47d6c26745c104 /libs/gtkmm2ext/gtkmm2ext/dndtreeview.h | |
parent | 49445140345fd4e57a833d3803e529c0c07d221c (diff) |
more hacking on the processor list and processor box - note that ctrl-x/c/v now work "as expected" and / is a keystroke for toggling active state. cut-n-paste ops should all basically work
git-svn-id: svn://localhost/ardour2/branches/3.0@5366 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/gtkmm2ext/dndtreeview.h')
-rw-r--r-- | libs/gtkmm2ext/gtkmm2ext/dndtreeview.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/dndtreeview.h b/libs/gtkmm2ext/gtkmm2ext/dndtreeview.h index 5464920a59..6295377672 100644 --- a/libs/gtkmm2ext/gtkmm2ext/dndtreeview.h +++ b/libs/gtkmm2ext/gtkmm2ext/dndtreeview.h @@ -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); } }; |