[cairo-commit] pycairo ChangeLog,1.186,1.187 NOTES,1.17,1.18

Steve Chaplin commit at pdx.freedesktop.org
Tue Oct 11 20:13:55 PDT 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo
In directory gabe:/tmp/cvs-serv21030

Modified Files:
	ChangeLog NOTES 
Log Message:
'SC'

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/pycairo/ChangeLog,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- ChangeLog	11 Oct 2005 07:02:21 -0000	1.186
+++ ChangeLog	12 Oct 2005 03:13:47 -0000	1.187
@@ -1,3 +1,10 @@
+2005-10-12  Steve Chaplin  <steve1097 at yahoo.com.au>
+
+	* cairo/pycairo-surface.c (surface_write_to_png): add support for
+	StringIO and cStringIO objects.
+
+	* NOTES : update notes for surface.write_to_png()
+
 2005-10-11  Steve Chaplin  <steve1097 at yahoo.com.au>
 
 	* RELEASING: update step 4 - check for uncommitted changes.

Index: NOTES
===================================================================
RCS file: /cvs/cairo/pycairo/NOTES,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- NOTES	3 Oct 2005 08:12:14 -0000	1.17
+++ NOTES	12 Oct 2005 03:13:47 -0000	1.18
@@ -148,7 +148,9 @@
     cairo_surface_write_to_png_stream (surface, write_func, closure);
 
 Py: surface.write_to_png (filename)
-    surface.write_to_png (file_object)
+    surface.write_to_png (f)
+       where 'f' is a file object or a file-like object (an object that has a
+       "write", for example StringIO, cStringIO)
 
 C : surface = cairo_image_surface_create (format, width, height);
     surface = cairo_image_surface_create_from_png (filename);



More information about the cairo-commit mailing list