[cairo] pycairo missing functions

Carl Worth cworth at cworth.org
Mon Nov 1 08:47:44 PST 2004


On Sun, 31 Oct 2004 21:39:21 +0800, Steve Chaplin wrote:
> I've started using pycairo and needed to use 
> cairo_set_target_png()
> cairo_set_target_ps()
> cairo_show_page()
> which were not available.
> 
> Here's the additions I made to pycairo-context.c to get them to work.

Hi Steve,

Thanks so much for your contribution.

I've just committed these new functions. I also added support for
cairo_copy_page while I was at it.

I haven't tested these at all. Steve, presumably you've got a working
program that exercises these functions. Would you consider cooking up a
minimal PNG-based example that we could include in the pycairo
distribution?

-Carl

PS. For future submissions, a patch file is much easier to work with
than just some code in an email message, (even if the amount of code is
very small). For example, I've attached a patch that I generated for the
change I just made. When working with CVS, this is as simple as grabbing
the output of "cvs diff -u" (modulo some annoyances when people without
cvs commit access want to generate a patch with new files). Outside of
cvs, it's simply a matter of putting an unmodified tree next to a
modified one and running something like "diff -urN" with the names of
both directories.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: png_functions_stevech-20041101.patch
Type: text/x-c
Size: 3666 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20041101/40ea33d9/png_functions_stevech-20041101.bin


More information about the cairo mailing list