On Wed, Mar 31, 2004 at 03:16:07PM -0500, george young wrote:
> [pygtk-1.99.17, gtk+-2.2.4, python-2.3.3]
> I am trying to set the drag icon for d&d from a treeview(with liststore).
> 
> The d&d works OK with the default icon, but the source row is so large,
> it's hard to see where you're dropping it.  I want to use some small pixbuf
> instead of the image of the source row.  When I execute:
> 
>         pb = gtk.gdk.pixbuf_new_from_xpm_data(openclose.Openclose.plus_xpm_d)
>         self.tv.drag_source_set_icon_pixbuf(pb)
> 
> I get:
> (er.py:13439): Gtk-CRITICAL **: file gtkdnd.c: line 2130 
> (gtk_drag_source_set_icon_pixbuf): assertion `site != NULL' failed

Hmmm. Have you tested with PyGTK-2.2.x? IIRC there were DnD changes done
to it, but I might be wrong.

> Is there any way to change the drag icon for a treeview row?

If it doesn't work for you as expected, try with the latest (CVS)
version, and if still no worky, file bugs.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to