reassign 472103 python-hippocanvas
retitle  472103 python-hippocanvas segfaults with newest python-cairo
tag 472103  + patch
thanks

Hello Hippo-Canvas Maintainers,

There is a segfault of sugar in debian atm. This is caused by a minor 
change in python-cairo, to not assume a default value if a NULL Pointer is 
given as second argument to PycairoContext_FromContext. 

To be honest, it is not actually sugar what is segfaulting but hippocanvas 
which does because of using a NULL pointer. 

The patch which is attached to this mail will fix this issue.. it replace 
the null pointer with the formor default value.

Greetings
Winnie

-- 
 .''`.   Patrick Winnertz <[EMAIL PROTECTED]>
:  :' :  GNU/Linux Debian Developer
`. `'`   http://www.der-winnie.de http://people.skolelinux.org/~winnie
  `-  Debian - when you have better things to do than fixing systems
      Spamtrap: [EMAIL PROTECTED]
diff -Nurwd old/hippo-canvas-0.2.23/python/arg-types.py hippo-canvas-0.2.23/python/arg-types.py
--- old/hippo-canvas-0.2.23/python/arg-types.py	2007-07-08 12:28:17.000000000 +0200
+++ hippo-canvas-0.2.23/python/arg-types.py	2008-04-05 18:08:51.000000000 +0200
@@ -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))

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to