wxGTK: wxDropSource::DoDragDrop problem

Robin Dunn robin at alldunn.com
Wed Jan 31 16:21:46 PST 2007


I've run into a problem in wxGTK's wxDropSource::DoDragDrop.  The call 
to gtk_drag_begin returns NULL, which is later causing this message:

Gtk-CRITICAL **: gtk_drag_set_icon_widget: assertion 
`GDK_IS_DRAG_CONTEXT (context)' failed

and then it gets stuck in the loop calling gtk_main_iteration().  I 
assume that the NULL return from gtk_drag_begin indicates an error, but 
I can't find anything to help me diagnose what the cause of the problem 
could be.  Any suggestions?

If it makes any difference this DnD operation is being launched from a 
wxGrid's EVT_GRID_CELL_BEGIN_DRAG event handler.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-dev mailing list