summaryrefslogtreecommitdiff
path: root/giscanner/glibtransformer.py
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-10-02 21:24:20 +0000
committerColin Walters <walters@src.gnome.org>2008-10-02 21:24:20 +0000
commitefbd75f72262e0194528e00508fb528497f58845 (patch)
tree60220771e592cb757bae15cbbb6bdb4add6e5b40 /giscanner/glibtransformer.py
parent5d4f1ef99ff5c57d4d047fa8ea71cc193f8555d8 (diff)
downloadgobject-introspection-efbd75f72262e0194528e00508fb528497f58845.tar.gz
Merge branch 'bug552961-methods/wip'
svn path=/trunk/; revision=647
Diffstat (limited to 'giscanner/glibtransformer.py')
-rw-r--r--giscanner/glibtransformer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/glibtransformer.py b/giscanner/glibtransformer.py
index 89b7bd4e..da7c9bf5 100644
--- a/giscanner/glibtransformer.py
+++ b/giscanner/glibtransformer.py
@@ -392,6 +392,8 @@ class GLibTransformer(object):
# Strip namespace and object prefix: gtk_window_new -> new
func.name = func.symbol[len(prefix)+1:]
if is_method:
+ # We don't need the "this" parameter
+ del func.parameters[0]
klass.methods.append(func)
else:
klass.constructors.append(func)