[cairo-commit] pycairo/cairo pycairo-surface.c, 1.89, 1.90 pycairo-pattern.c, 1.39, 1.40

Steve Chaplin commit at pdx.freedesktop.org
Mon Sep 1 06:56:26 PDT 2008


Committed by: stevech1097

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

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

Index: pycairo-surface.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-surface.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- pycairo-surface.c	12 May 2008 12:06:37 -0000	1.89
+++ pycairo-surface.c	1 Sep 2008 13:56:24 -0000	1.90
@@ -99,8 +99,8 @@
 	break;
 #endif
     default:
-	PyErr_SetString(CairoError, "Unsupported Surface type");
-	return NULL;
+	type = &PycairoSurface_Type;
+	break;
     }
 
     o = type->tp_alloc (type, 0);

Index: pycairo-pattern.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-pattern.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- pycairo-pattern.c	11 Dec 2007 02:56:48 -0000	1.39
+++ pycairo-pattern.c	1 Sep 2008 13:56:24 -0000	1.40
@@ -77,8 +77,8 @@
 	type = &PycairoRadialGradient_Type;
 	break;
     default:
-	PyErr_SetString(CairoError, "Unsupported Pattern type");
-	return NULL;
+	type = &PycairoPattern_Type;
+	break;
     }
 
     o = type->tp_alloc(type, 0);



More information about the cairo-commit mailing list