Re: can't retrieve text/image added by gtk:clipboard-set-with-data
Espen S Johnsen <[email protected]> 13 Dec 2007 09:55:54 +0100
| Newsgroups | gmane.lisp.clg.devel |
|---|---|
| Message-ID | <[email protected]> |
Chisheng Huang <[email protected]> writes: > I'd like to use GTK:CLIPBOARD-SET-WITH-DATA so that I can carry out some > clean up operations after the data posted to the clipboard is cleared. > But the problem is the text or pixbuf passed to GTK:CLIPBOARD-SET-WITH-DATA > can't be retrieved by gtk:clipboard-wait-for-{text or image} and > gtk:clipboard-request-{text or image}. The attached code demonstrates > the problem. Any help to get around this problem will be appreciated. This turned out to be a bug in the callback mechanism. Structs passed from C to Lisp was accidently being copied, causing memory leaks and in this case, changes made to the selection-data struct were lost. I've checked in a fix. -- Espen ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace