[cairo] [PATCH] Enable links to image files in SVG backend

Carl Worth cworth at cworth.org
Fri Jan 15 15:32:56 PST 2010

On Wed, 13 Jan 2010 12:07:20 +0000, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> Hmm, I didn't particularly like the look of this suggested api, and was
> hoping that either the eagle-eyed and API maestro, Carl, would have picked
> up on this and complained..

Ah, but I don't like to complain unless I have something better to offer
as a replacement. :-)

> I was also hoping that Adrian would have
> pointed out how the existing mime-data could be extended for this use
> case, and so we therefore have an existing paradigm in which to work...
> This might be a bit of an abuse of mime-data, but I was thinking along the
> lines of
>   cairo_surface_set_mime_data (surface, "x-data/filename",
>                                "/path/to/executable.jpg", strlen("..."),
>                                NULL, NULL);

That definitely looks much better to me. No new API is good API!

Though, obviously, we will need new documentation to cover this.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20100115/8ac8cb32/attachment.pgp 

More information about the cairo mailing list