Re: [gnome-love] Adding DnD support to an application



Thank you for your response.

I think you'll find very useful this bug report[1] about adding that
same feature to evince (DND of files from nautilus into evince to open
them) and the small patch[2] for it, with that and the DND api
documentation[3] I think you could do that.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=164813
Great. I'll look into this one.

[2] http://cvs.gnome.org/viewcvs/evince/shell/ev-window.c?r1=1.62&r2=1.63
My C knowlegde isn't the best, but I'll give it a try.

[3] http://developer.gnome.org/doc/API/2.0/gtk/gtk-Drag-and-Drop.html
I've read this one and the pygtk documentation and samples about DnD.

http://www.pygtk.org/pygtk2tutorial/sec-DNDMethods.html

The one spesific thing I'm struggeling with is what is which widget
will be the destination widget in Meld when they are using both Glade
and constructing the UI with Python code. Will one the of the Glade
"generated objects" at runtime be the destination widget or will any
of the objects constructed in Python code serve as the destination.

-------- Trond



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