giscanner: don't lose 'transfer-ownership' attributes when injecting
authorTommi Komulainen <tko@src.gnome.org>
Mon, 20 Oct 2008 13:44:15 +0000 (13:44 +0000)
committerTommi Komulainen <tko@src.gnome.org>
Mon, 20 Oct 2008 13:44:15 +0000 (13:44 +0000)
* giscanner/girparser.py (_parse_function): don't lose
'transfer-ownership' attributes when injecting, check for the
correct attribute

svn path=/trunk/; revision=755

giscanner/girparser.py

index c13b217..bda43e7 100644 (file)
@@ -165,7 +165,7 @@ class GIRParser(object):
                 param = Parameter(paramnode.attrib.get('name'),
                                   self._parse_type(paramnode),
                                   paramnode.attrib.get('direction'),
-                                  paramnode.attrib.get('transfer'),
+                                  paramnode.attrib.get('transfer-ownership'),
                                   paramnode.attrib.get('allow-none') == '1')
                 parameters.append(param)
         if klass is Callback: