[Gtk-sharp-list] When using Drag and Drop in a TreeView, how do I keep from dropping between rows?
matthew.pirocchi at gmail.com
Fri Feb 5 14:10:52 EST 2010
I'm testing a window that looks something like this:
Dragging a Tag to a Card links the Tag to the Card. So does dragging a
Card to a Tag.
It's meaningless to drop a tag between two cards, or a card between
two tags. I can ignore these outcomes in the Handle...DataReceived
function like this:
if (dropPos != TreeViewDropPosition.IntoOrAfter &&
dropPos != TreeViewDropPosition.IntoOrBefore)
However, when dragging, the user still sees the option to insert:
How do I prevent this from happening?
More information about the Gtk-sharp-list