hippo-canvas r7238 - trunk/python
- From: marco svn gnome org
- To: svn-commits-list gnome org
- Subject: hippo-canvas r7238 - trunk/python
- Date: Thu, 24 Jan 2008 16:02:00 +0000 (GMT)
Author: marco
Date: Thu Jan 24 16:02:00 2008
New Revision: 7238
URL: http://svn.gnome.org/viewvc/hippo-canvas?rev=7238&view=rev
Log:
Explicity pass the type argument of PycairoContext_FromContext
since NULL is no more supported in pycairo >= 1.4.12
Modified:
trunk/python/arg-types.py
Modified: trunk/python/arg-types.py
==============================================================================
--- trunk/python/arg-types.py (original)
+++ trunk/python/arg-types.py Thu Jan 24 16:02:00 2008
@@ -7,7 +7,7 @@
def convert_c2py(self):
self.wrapper.add_declaration("PyObject *py_%s;" % self.name)
self.wrapper.write_code(
- code=('py_%s = PycairoContext_FromContext(cairo_reference(%s), NULL, NULL);' %
+ code=('py_%s = PycairoContext_FromContext(cairo_reference(%s), &PycairoContext_Type, NULL);' %
(self.name, self.name)),
cleanup=("Py_DECREF(py_%s);" % self.name),
failure_expression=("!py_%s" % self.name))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]