On Tue, 2002-05-28 at 16:56, Seth Kurtzberg wrote:
> My problem is slightly different; I'm copying from a pygtk application to a
> legacy application using the clipboard. With the code in the selection.py
> sample file, the middle button paste works but a paste from the taskbar (in
> gnome-terminal, for example) doesn't work.
[snip]
> Obviously I'm missing something. Is this related to selection names, such as
> GDK_SELECTION_PRIMARY (which I just copied under emacs, and pasted under
> kmail, and both middle button and edit/paste work, so it is possible).
Ahhh, the Joy of X Selections :) You are correct, there are multiple
selections and how you select something affects which one is used.
When you select something using click and drag, and paste using the
middle mouse-button, the PRIMARY selection is used. When you select
something and use "Cut", or "Copy" from the menu, the CLIPBOARD
selection is used.
The closest thing to a standard is
http://www.freedesktop.org/standards/clipboards.txt
To handle legacy apps you have to put the data in both, IIRC.
--
Michael JasonSmith http://www.cosc.canterbury.ac.nz/~mpj17/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/