public bool GetDropTargetRow(double x, double y, out RowDropPosition pos, out TreePosition nodePosition)
{
Gtk.TreeViewDropPosition tpos;
Gtk.TreePath path;
if (!Widget.GetDestRowAtPos ((int)x, (int)y, out path, out tpos)) {
pos = RowDropPosition.Into;
nodePosition = null;
return false;
}
Gtk.TreeIter it;
Widget.Model.GetIter (out it, path);
nodePosition = new IterPos (-1, it);
switch (tpos) {
case Gtk.TreeViewDropPosition.After: pos = RowDropPosition.After; break;
case Gtk.TreeViewDropPosition.Before: pos = RowDropPosition.Before; break;
default: pos = RowDropPosition.Into; break;
}
return true;
}