Main index > Python programming > Drag&drop in adesklets

By seventhguardian (User), on Tue Jul 5 11:40:49 2005: Drag&drop in adesklets.

Hi!

I was wandering.. I would like a desklet (I'm considering writting one myself) that could be a "trash bin" desklet. I mean, it would manage the user trash, implemented as specified in XDG (in freedesktop.org). Being so, it would be nice if we could drag files to it, to have them trashed.

So here's my doubt: is adesklets Drag&Drop capable? I mean, can we make an event handler for it? If not, is it too dificult to include such an event in adesklets?

Thanks!

By syfou (Core Developer & Desklet Author), on Tue Jul 5 14:12:35 2005.

To my best knowledge, there is no accepted standard for handling user trash. If you know better, I will be happy to look up precice pointers... I spent ten minutes perusing the XDG mailing list archive without success.

As for Drag&Drop, this is another feature that is anything but standardized across Windows Managers (the concept doesn't exist under X11). For a long time, many toolkits (GTK+, QT) just sent a mid-click event at the end of the drag, that was largely seen as a paste request by the targeted client. Now, they use complicated, incompatible mechanism involving atoms and different clipboards, making very hard to catch and interpret them at the xlib level. This (partly) explains why you do not have event notification for it in adesklets, and why it would be hard to do it nowadays, even if I included a Copy&Paste event support.


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.