~ubuntu-branches/ubuntu/natty/pygoocanvas/natty

« back to all changes in this revision

Viewing changes to arg-types.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-09-10 20:17:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060910201739-0bx7brrgtglz1lxa
Tags: 0.4.1-1
* New upstream version:
  - Much better support for subclassing ItemSimple / ItemSimpleView 
  - Don't crash an functions returning NULL CairoMatrix 
  - CairoPattern property convertion bug fixed

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
    def write_return(self, ptype, ownsreturn, info):
17
17
        info.varlist.add('cairo_matrix_t', '*ret')
18
 
        info.codeafter.append('   return PycairoMatrix_FromMatrix(ret);\n');
 
18
        info.codeafter.append('    if (ret)\n'
 
19
                              '        return PycairoMatrix_FromMatrix(ret);\n'
 
20
                              '    else {\n'
 
21
                              '        Py_INCREF(Py_None);\n'
 
22
                              '        return Py_None;\n'
 
23
                              '    }');
19
24
 
20
25
matcher.register('cairo_matrix_t*', CairoMatrixArg())
21
26