Comment 9 for bug 769344

Revision history for this message
Laszlo Pandy (laszlok) wrote :

Maybe you should create your own branch for this, and then I can merge the changes. I feel like this is going to take more than one patch to fix.

Since you said "this feature isn't production ready yet" I've been thinking of how it should actually work. I think there should be one network consumer thread, and we make use of Python's synchronized Queue. The network.py plugin would spawn the consumer thread, and also register a gobject.timeout_add() on the main thread, which would check the queue and set the clipboard text.

I believe this would solve all these thread and GTK issues and avoid changing any code glipper code (the changes would contained in the plugin).

Thoughts?