[Gtk-sharp-list] Issues with Drag and Drop from TreeView on Mac and Windows

Doug Blank doug.blank at gmail.com
Mon Feb 7 11:01:24 EST 2011


I'm looking for some advice on how to make TreeView (or something)
work in a drag-and-drop managed Mono Gtk# app on Win, Linux, and Mac.

I have some sample code dragging treeview items onto other widgets:

http://svn.cs.brynmawr.edu/viewvc/Pyjama/trunk/dragdropbug.cs?view=markup

that works fine in Linux, doesn't allow the drop in Windows (using
Mono after version 2.6.7), and just crashes on the drop (because of no
Context.Targets I suspect) on all versions of Mac Mono. Am I doing something
obviously wrong?

I've reported the Windows issue as a bug:

https://bugzilla.novell.com/show_bug.cgi?id=664824

Is there a way I can work-around these limitations in Managed C#? Or,
if I need to drop down to unsafe, I could do that too. As long as it
would allow the drop on Windows, and not crash on Mac.

Any assistance much appreciated!

-Doug

PS - here is my goal:
http://www.youtube.com/user/dsblank007?feature=mhum#p/u/4/wV1m-DIHC5c


More information about the Gtk-sharp-list mailing list