[Thunar-dev] Clipboard management
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Tue Jul 12 21:06:19 CEST 2005
Jens Luedicke wrote:
>>>I'm on the ThunarClipboardManager class right now, and wondering what
>>>targets should be supported by Thunar.
>>>
>>>For example, Nautilus supports the x-special/gnome-copied-files and
>>>UTF8_STRING targets, while only the further can be used for both cut and
>>>copy. With UTF8_STRING, the clipboard content will be a plain
>>>text/uri-list with no information about whether the data should be
>>>copied or moved; that said, it's up to the target to decide what to do
>>>with the uris.
>>>
>>>So, Thunar will atleast support the x-special/gnome-copied-files and
>>>UTF8_STRING (mainly useful for pasting URIs to editors, etc.) targets.
>>>
>>>Does anybody know of other targets that would be worth to support?
>
> random question:
>
> how is the data within the clipboard marked for copy/cut?
> right now I set a variable to cut or copy (which of course is Filer
> internal). hints?
As said, for UTF8_STRING it isn't, it's just the text/uri-list there,
and the target must guess whether to cut or copy.
With x-special/gnome-copied-files, it's basicly text/uri-list content
with either "cut" or "copy" prepended.
> jens
Benedikt
More information about the Thunar-dev
mailing list