[Gtk-sharp-list] Gtk# equivalent to PyGTK's DragContext.drag_status(action, time) method?
Matthew Pirocchi
matthew.pirocchi at gmail.com
Sat Feb 6 15:26:59 EST 2010
I'm trying to port some PyGTK code that uses the
DragContext.drag_status(action, time) method:
http://www.pygtk.org/docs/pygtk/class-gdkdragcontext.html#method-gdkdragcontext--drag-status
However, there don't seem to be any methods available to Gtk#'s
DragContext class--just a bunch of readonly properties:
http://www.go-mono.org/docs/index.aspx?link=T:Gdk.DragContext/*
Here is the full code that I am trying to port (I've got all of it
working except drag_status):
def _drag_motion(self, widget, context, x, y, etime):
drag_info = widget.get_dest_row_at_pos(x, y)
if not drag_info:
return False
path, pos = drag_info
if pos == gtk.TREE_VIEW_DROP_BEFORE:
widget.set_drag_dest_row(path, gtk.TREE_VIEW_DROP_INTO_OR_BEFORE)
elif pos == gtk.TREE_VIEW_DROP_AFTER:
widget.set_drag_dest_row(path, gtk.TREE_VIEW_DROP_INTO_OR_AFTER)
context.drag_status(context.suggested_action, etime)
return True
What is Gtk#'s equivalent to PyGTK's DragContext.drag_status(action,
time) method?
More information about the Gtk-sharp-list
mailing list