Re: Drag and Drop issue.



I've written DND modules for both the ctree and clist, they work
differently unfortunatly.

The CTree is actually easier, it sets the icon for ya. It sets it to
whatever the Pixmap is for the branch in question.

The clist is a bit more dumb as you'll have to set the drag icon when a
select_row signal is recieved. As you can tell this is setting the icon
*way* ahead of time but I find it works out nicly. Don't forget to
increase the refcount for the GdkPixmap and GdkBitmap each time you set
the drag icon (see the GTK+ DND example).

Excuse me but I think I don't cleary explain my problem.
I don't want a GdkPixmap or a GdkBitmap but a whole widget (a pop-up
window for example). It work fine with a GdkPixmap or a GdkBitmap. I
tried it before.
But with a widget, it appears but it is replaced by the default drag
icon instantaneously.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]