I have a setting gtk.Treeviewas a drag source:
self.drag_source_set(gtk.gdk.BUTTON1_MASK, targets, gtk.gdk.ACTION_COPY)
a TreeSelection- SELECT_MULTIPLE.
But every time I try to drag a few lines, the cursor will move to the current position of the mouse, resetting the selection to the current line. Although the mouse is above one of the selected lines. It only works when I hold the Shiftor button Ctrl.
What's happening?
Change 1:
I installed tree-tree tree to rule out any errors in my code, and it does the same.
Edit 2:
I found a piece of code that does what I want. This is from libd quod sources called MultiDragTreeView.