[cairo-commit] pycairo/cairo pycairo-surface.c,1.69,1.70

Steve Chaplin commit at pdx.freedesktop.org
Tue May 16 19:25:59 PDT 2006


Committed by: stevech1097

Update of /cvs/cairo/pycairo/cairo
In directory kemper:/tmp/cvs-serv1946/cairo

Modified Files:
	pycairo-surface.c 
Log Message:
'SC'

Index: pycairo-surface.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-surface.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- pycairo-surface.c	16 May 2006 05:55:26 -0000	1.69
+++ pycairo-surface.c	17 May 2006 02:25:57 -0000	1.70
@@ -759,8 +759,22 @@
     Py_RETURN_NONE;
 }
 
+static PyObject *
+pdf_surface_set_size (PycairoPDFSurface *o, PyObject *args)
+{
+    double width_in_points, height_in_points;
+
+    if (!PyArg_ParseTuple(args, "dd:PDFSurface.set_size", &width_in_points,
+			  &height_in_points))
+	return NULL;
+    cairo_pdf_surface_set_size (o->surface, width_in_points,
+				height_in_points);
+    Py_RETURN_NONE;
+}
+
 static PyMethodDef pdf_surface_methods[] = {
-    {"set_dpi", (PyCFunction)pdf_surface_set_dpi,    METH_VARARGS },
+    {"set_dpi",  (PyCFunction)pdf_surface_set_dpi,     METH_VARARGS },
+    {"set_size", (PyCFunction)pdf_surface_set_size,    METH_VARARGS },
     {NULL, NULL, 0, NULL},
 };
 



More information about the cairo-commit mailing list