On Tue, Mar 3, 2009 at 5:43 AM, Antoine Martin <[email protected]> wrote:
> I need to have a functional clipboard, so I started adding callbacks for
> gtk.clipboard sending/receiving and quickly hit some snags:
> 1) I can't seem to find a way to get notified when something happens with
> the clipboard. So I adopted the dirty option of polling for changes after
> any keyboard/mouse clicks.
> (but this does not cater for programmatic modification of the clipboard)
> This seems to work ok.
> 2) Calls to the clipboard seem to be slow. (not sure why)
> Would it be better to use a separate thread?

Clipboard support in xpra would be awesome.

I am not sure how to answer your questions with the information
available :-). I sketched out some clipboard functionality at one
point, but got stuck when I realized I couldn't, using gtk.Clipboard,
easily handle TARGETS conversion requests in my own code... but I'm
not sure if that's the problem you refer to or not. gtk.Clipboard does
provide notifications when the selection owner changes...

And since I don't know what you're doing, I have no guesses at all on
why it would be slow :-). But it seems extremely unlikely that adding
threads would help.

Can you give more details? Maybe in the form of code?

-- Nathaniel

_______________________________________________
Parti-discuss mailing list
[email protected]
http://lists.partiwm.org/cgi-bin/mailman/listinfo/parti-discuss

Reply via email to