From: Georgios Petasis on
Hi all,

I was looking into the tkdnd not working under linux,
and seems that KDE has become much less forgiving than the past :-)

The XDND protocol dictates that the selection should be retrieved with a
specific timestamp. In an attempt to not reinvent the wheel, I used
"selection get", which seemed to work for some time:

selection get -displayof $drop_target -selection XdndSelection \
-type $drop_type

But this no longer works. Looking at the sources, I see in
unix/tkUnixSelect.c: (line 178):

XConvertSelection(winPtr->display, retr.selection, retr.target,
retr.property, retr.winPtr->window, CurrentTime);

This "CurrentTime" is the problem. Not only not accessible from the tcl
level, but it is not available even from the C level :-)

So, what is my best bet for this?

My initial thought was to try and mimic what TkSelGetSelection does, by
doing my own XConvertSelection(). But there is this static to Tk
variable, pendingRetrievals, which cannot be accessed by an extension
like tkdnd. Any ideas?

(How about adding a "-time" option to "selection get"? :D)

George
 | 
Pages: 1
Prev: Tclhttpd: unable to serve .swf files?
Next: teapot