[cairo-commit] pycairo/cairo pycairo-pattern.c,1.43,1.44

Steve Chaplin commit at pdx.freedesktop.org
Mon Mar 16 02:19:46 PDT 2009


Committed by: stevech1097

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

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

Index: pycairo-pattern.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-pattern.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- pycairo-pattern.c	12 Feb 2009 09:04:29 -0000	1.43
+++ pycairo-pattern.c	16 Mar 2009 09:19:44 -0000	1.44
@@ -117,6 +117,12 @@
 }
 
 static PyObject *
+pattern_get_extend (PycairoPattern *o)
+{
+    return PyInt_FromLong (cairo_pattern_get_extend (o->pattern));
+}
+
+static PyObject *
 pattern_get_matrix (PycairoPattern *o)
 {
     cairo_matrix_t matrix;
@@ -125,6 +131,18 @@
 }
 
 static PyObject *
+pattern_set_extend (PycairoPattern *o, PyObject *args)
+{
+    int extend;
+
+    if (!PyArg_ParseTuple(args, "i:Pattern.set_extend", &extend))
+ 	return NULL;
+
+    cairo_pattern_set_extend (o->pattern, extend);
+    Py_RETURN_NONE;
+}
+
+static PyObject *
 pattern_set_matrix (PycairoPattern *o, PyObject *args)
 {
     PycairoMatrix *m;
@@ -146,8 +164,10 @@
      * cairo_pattern_status()
      * - not needed since Pycairo handles status checking
      */
-    {"get_matrix",       (PyCFunction)pattern_get_matrix,      METH_NOARGS },
-    {"set_matrix",       (PyCFunction)pattern_set_matrix,      METH_VARARGS },
+    {"get_extend", (PyCFunction)pattern_get_extend,          METH_NOARGS },
+    {"get_matrix", (PyCFunction)pattern_get_matrix,          METH_NOARGS },
+    {"set_extend", (PyCFunction)pattern_set_extend,          METH_VARARGS },
+    {"set_matrix", (PyCFunction)pattern_set_matrix,          METH_VARARGS },
     {NULL, NULL, 0, NULL},
 };
 
@@ -281,12 +301,6 @@
 }
 
 static PyObject *
-surface_pattern_get_extend (PycairoSurfacePattern *o)
-{
-    return PyInt_FromLong (cairo_pattern_get_extend (o->pattern));
-}
-
-static PyObject *
 surface_pattern_get_filter (PycairoSurfacePattern *o)
 {
     return PyInt_FromLong (cairo_pattern_get_filter (o->pattern));
@@ -306,18 +320,6 @@
 }
 
 static PyObject *
-surface_pattern_set_extend (PycairoSurfacePattern *o, PyObject *args)
-{
-    int extend;
-
-    if (!PyArg_ParseTuple(args, "i:SurfacePattern.set_extend", &extend))
- 	return NULL;
-
-    cairo_pattern_set_extend (o->pattern, extend);
-    Py_RETURN_NONE;
-}
-
-static PyObject *
 surface_pattern_set_filter (PycairoSurfacePattern *o, PyObject *args)
 {
     int filter;
@@ -330,10 +332,8 @@
 }
 
 static PyMethodDef surface_pattern_methods[] = {
-    {"get_extend",    (PyCFunction)surface_pattern_get_extend,  METH_NOARGS },
     {"get_filter",    (PyCFunction)surface_pattern_get_filter,  METH_NOARGS },
     {"get_surface",   (PyCFunction)surface_pattern_get_surface, METH_NOARGS },
-    {"set_extend",    (PyCFunction)surface_pattern_set_extend,  METH_VARARGS },
     {"set_filter",    (PyCFunction)surface_pattern_set_filter,  METH_VARARGS },
     {NULL, NULL, 0, NULL},
 };



More information about the cairo-commit mailing list