From 8b97995ec79f93ae7c3ccaedaaa87849a7e8a0df Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 29 Apr 2008 12:09:51 +0000 Subject: [project @ fpeters@0d.be-20080406135913-4sxje4sifk407jna] support for methods returning GList* of LassoNode* Original author: Frederic Peters Date: 2008-04-06 15:59:13.889000+02:00 --- bindings/lang_python.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bindings/lang_python.py') diff --git a/bindings/lang_python.py b/bindings/lang_python.py index 1c9be33f..46980c61 100644 --- a/bindings/lang_python.py +++ b/bindings/lang_python.py @@ -457,6 +457,12 @@ if WSF_SUPPORT: print >> fd, ' if rc == 0:' print >> fd, ' return' print >> fd, ' raise Error.raise_on_rc(rc)' + elif m.return_type == 'GList*' and self.is_pygobject(m.return_type_qualifier): + print >> fd, ' value = _lasso.%s(self._cptr%s)' % ( + function_name, c_args) + print >> fd, ' if value is not None:' + print >> fd, ' value = tuple([x._cptr for x in value])' + print >> fd, ' return value' elif self.is_pygobject(m.return_type): print >> fd, ' return cptrToPy(_lasso.%s(self._cptr%s))' % ( function_name, c_args) -- cgit