2010/9/5 Tavmjong Bah <tavmjong@...8...>:
Can someone tell me how Inkscape tags SVG content on the clipboard for Windows, MacOS, and Linux? As far as I can tell, Inkscape copies the entire SVG content is copied as text.
SVG content is definitely not copied as text.
There is no concept of clipboard tags in GTK. Instead, there are mimetypes. We advertise two SVG mimetypes: image/x-inkscape-svg, which corresponds to "Inkscape SVG" in the Save menu, and image/svg+xml, which corresponds to "Plain SVG" (Inkscape SVG with all Inkscape-specific stuff stripped out). The proper place to handle the new clipboard tag is probably GTK.
If I understand how the GTK code works, we could use "SVG Image" as the 'mimetype' passed to GTK and in absence of any special processing on the GTK side this would get used as the "clipboard tag".
Regards, Krzysztof