Hello all,
I'm having some more trouble with drag and drop. I'm
trying to do figure out if drops are coming from the widget
where the drag originated, and so I do this:
source_widget = w.drag_get_source_widget(context)
This works fine if the source widget is in the same program
as the destination widget, but if it's from another program,
my program crashes and gives this error:
Gtk-CRITICAL **: file gtkobject.c: line 1161
(gtk_object_ref): assertion `object != NULL' failed.
Gtk-WARNING **: invalid cast from (NULL) pointer to
`GtkObject'
Gtk-WARNING **: invalid cast from (NULL) pointer to
`GtkObject'
Gtk-WARNING **: invalid cast from (NULL) pointer to
`GtkObject'
I think I understand the problem. drag_get_source_widget
returns NULL if the source of the drag is from another
program. However, my program dies before I can even test
for this.
Any help would be appreciated.
Steve
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk