summaryrefslogtreecommitdiff
path: root/giscanner/maintransformer.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-24 13:50:17 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-24 13:53:36 -0300
commit818333247787bb1cf51b0fb13276114de9f9bfa2 (patch)
tree5b1894733fa6b4605333be54c28e5e5a0ae80f4a /giscanner/maintransformer.py
parent789321d97207d6989ef77805fe5fb5920b6935cc (diff)
downloadgobject-introspection-818333247787bb1cf51b0fb13276114de9f9bfa2.tar.gz
[annotationparser] Allow param less closures
Allow closures without annotations to avoid having to duplicate the parameter name.
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r--giscanner/maintransformer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index 0407bbc5..e45ff795 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -600,7 +600,7 @@ usage is void (*_gtk_reserved1)(void);"""
# since we don't have a way right now to flag this callback a destroy.
destroy_param.scope = ast.PARAM_SCOPE_NOTIFIED
closure = options.get(OPT_CLOSURE)
- if closure:
+ if closure and closure.length() == 1:
param.closure_name = self._get_validate_parameter_name(parent,
closure.one(),
param)