[cairo-commit] pycairo/examples/cairo_snippets/snippets __init__.py, 1.3, 1.4

Steve Chaplin commit at pdx.freedesktop.org
Thu Aug 3 19:24:23 PDT 2006


Committed by: stevech1097

Update of /cvs/cairo/pycairo/examples/cairo_snippets/snippets
In directory kemper:/tmp/cvs-serv12247/examples/cairo_snippets/snippets

Modified Files:
	__init__.py 
Log Message:
'SC'

Index: __init__.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets/__init__.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- __init__.py	20 Jan 2006 09:55:16 -0000	1.3
+++ __init__.py	4 Aug 2006 02:24:21 -0000	1.4
@@ -10,14 +10,3 @@
 def snippet_normalize (ctx, width, height):
     ctx.scale (width, height)
     ctx.set_line_width (0.04)
-
-def snippet_set_bg_svg (ctx, filename):
-    import cairo.svg
-
-    svg_cr = cairo.svg.Context()
-    svg_cr.parse (filename)
-    w, h = svg_cr.get_size()
-    ctx.save()
-    ctx.scale (1.0/w, 1.0/h)
-    svg_cr.render (ctx)
-    ctx.restore()



More information about the cairo-commit mailing list