[cairo-commit] pycairo/cairo pycairo-surface.c,1.67,1.68

Steve Chaplin commit at pdx.freedesktop.org
Sat May 13 02:29:51 PDT 2006


Committed by: stevech1097

Update of /cvs/cairo/pycairo/cairo
In directory kemper:/tmp/cvs-serv1507/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.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- pycairo-surface.c	7 May 2006 02:48:54 -0000	1.67
+++ pycairo-surface.c	13 May 2006 09:29:49 -0000	1.68
@@ -832,6 +832,24 @@
 }
 
 static PyObject *
+ps_surface_dsc_begin_page_setup (PycairoPSSurface *o)
+{
+    cairo_ps_surface_dsc_begin_page_setup (o->surface);
+    if (Pycairo_Check_Status (cairo_surface_status (o->surface)))
+	return NULL;
+    Py_RETURN_NONE;
+}
+
+static PyObject *
+ps_surface_dsc_begin_setup (PycairoPSSurface *o)
+{
+    cairo_ps_surface_dsc_begin_setup (o->surface);
+    if (Pycairo_Check_Status (cairo_surface_status (o->surface)))
+	return NULL;
+    Py_RETURN_NONE;
+}
+
+static PyObject *
 ps_surface_dsc_comment (PycairoPSSurface *o, PyObject *args)
 {
     const char *comment;
@@ -869,9 +887,12 @@
 }
 
 static PyMethodDef ps_surface_methods[] = {
-    {"dsc_comment", (PyCFunction)ps_surface_dsc_comment,     METH_VARARGS },
-    {"set_dpi",  (PyCFunction)ps_surface_set_dpi,            METH_VARARGS },
-    {"set_size", (PyCFunction)ps_surface_set_size,           METH_VARARGS },
+    {"dsc_begin_page_setup",
+                   (PyCFunction)ps_surface_dsc_begin_page_setup, METH_NOARGS },
+    {"dsc_begin_setup", (PyCFunction)ps_surface_dsc_begin_setup, METH_NOARGS },
+    {"dsc_comment", (PyCFunction)ps_surface_dsc_comment,        METH_VARARGS },
+    {"set_dpi",  (PyCFunction)ps_surface_set_dpi,               METH_VARARGS },
+    {"set_size", (PyCFunction)ps_surface_set_size,              METH_VARARGS },
     {NULL, NULL, 0, NULL},
 };
 
@@ -964,6 +985,11 @@
 }
 
 static PyMethodDef svg_surface_methods[] = {
+    /* TODO
+     * cairo_svg_surface_restrict_to_version
+     * cairo_svg_get_versions
+     * cairo_svg_version_to_string
+     */
     {"set_dpi", (PyCFunction)svg_surface_set_dpi,    METH_VARARGS },
     {NULL, NULL, 0, NULL},
 };
@@ -971,8 +997,8 @@
 PyTypeObject PycairoSVGSurface_Type = {
     PyObject_HEAD_INIT(NULL)
     0,                                  /* ob_size */
-    "cairo.SVGSurface",                  /* tp_name */
-    sizeof(PycairoSVGSurface),           /* tp_basicsize */
+    "cairo.SVGSurface",                 /* tp_name */
+    sizeof(PycairoSVGSurface),          /* tp_basicsize */
     0,                                  /* tp_itemsize */
     0,                                  /* tp_dealloc */
     0,                                  /* tp_print */



More information about the cairo-commit mailing list