summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:03:24 +0000
committerFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:03:24 +0000
commita2d633e7fa2c454d901e0b24d0f0e7c56ff1aaae (patch)
treeff6fae0de74b757ff961497f5731590939f81e7e
parent44f6e18fe39608468e0338116d36ddc8776dce74 (diff)
downloadlasso-a2d633e7fa2c454d901e0b24d0f0e7c56ff1aaae.tar.gz
lasso-a2d633e7fa2c454d901e0b24d0f0e7c56ff1aaae.tar.xz
lasso-a2d633e7fa2c454d901e0b24d0f0e7c56ff1aaae.zip
[project @ fpeters@0d.be-20071028192051-mdp2mgambly3dyxv]
fixed two places which had not been converted to new cptr/type Original author: Frederic Peters <fpeters@0d.be> Date: 2007-10-28 20:20:51.103000+01:00
-rw-r--r--bindings/lang_python.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bindings/lang_python.py b/bindings/lang_python.py
index abb5b2d7..5e19fdc4 100644
--- a/bindings/lang_python.py
+++ b/bindings/lang_python.py
@@ -207,7 +207,7 @@ import lasso
print >> fd, ' @classmethod'
print >> fd, ' def newFromDump(cls, dump):'
print >> fd, ' obj = cls.__new__(cls)'
- print >> fd, ' obj._cptr = _lasso.%s(dump)[1]' % m.name[6:]
+ print >> fd, ' obj._cptr = _lasso.%s(dump)' % m.name[6:]
print >> fd, ' if obj._cptr is None:'
print >> fd, ' raise "XXX"'
print >> fd, ' return obj'
@@ -221,9 +221,9 @@ import lasso
options = m[2]
print >> fd, ' def get_%s(self):' % mname
if self.is_pygobject(m[0]):
- print >> fd, ' t, cptr = _lasso.%s_%s_get(self._cptr)' % (
+ print >> fd, ' t = _lasso.%s_%s_get(self._cptr)' % (
klassname, mname)
- print >> fd, ' return cptrToPy(t, cptr)'
+ print >> fd, ' return cptrToPy(t)'
elif m[0] == 'GList*' and options.get('elem_type') != 'char*':
print >> fd, ' l = _lasso.%s_%s_get(self._cptr)' % (
klassname, mname)