xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Changes between Version 5 and Version 6 of Clipboard


Ignore:
Timestamp:
03/04/13 09:20:38 (9 years ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Clipboard

    v5 v6  
    11= Clipboard =
     2
     3[[BR]]
     4
     5
     6== Introduction ==
    27
    38Clipboard support is an ongoing struggle.
     
    1116----
    1217
     18== Testing the clipboard ==
     19
     20The easiest way to test the clipboard is to use {{{xclip}}} to set and verify the contents of each clipboard:
     21{{{
     22echo _primary_ | xclip -i -selection primary
     23}}}
     24To set the "primary" clipboard contents to the string "_primary_".
     25{{{
     26xclip -o -selection primary
     27}}}
     28To print the contents of the "primary" clipboard.
     29
     30Note: on win32, you will need to change the clipboard currently in use to match the one you modify, this must be done before changing the value to ensure it is propagated.
     31
     32
     33----
     34
     35== Useful Pointers ==
    1336Here are some pointers:
    1437* [http://www.pygtk.org/docs/pygtk/class-gtkclipboard.html gtk.Clipboard] is the nice wrapper class pygtk provides for us
     
    2245----
    2346
    24 Source code:
     47== Source code ==
    2548* [/browser/xpra/trunk/src/xpra/platform/clipboard_base.py xpra.platform.clipboard_base] - the base class for clipboard implementations
    2649* [/browser/xpra/trunk/src/xpra/platform/gdk_clipboard.py xpra.platform.gdk_clipboard] - the gdk clipboard implementation (which requires Cython to build the C parts that allow us to access X11 atoms). It also contains the {{{TranslatedClipboardProtocolHelper}}} which is used by Windows clients to translate the local clipboard to a particular X11 clipboard.
     
    2952----
    3053
    31 Related tickets:
     54== Related tickets ==
    3255* #41: when we support concurrent users on the same session, we currently give the clipboard to the first client - doing anything else will be quite tricky
    3356* #272 win32 multiple clipboards enhancement