projects
/
gnome.gobject-introspection
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
scanner: Always explicitely set the scope of callbacks
[gnome.gobject-introspection]
/
giscanner
/
transformer.py
diff --git
a/giscanner/transformer.py
b/giscanner/transformer.py
index
1024ee3
..
f31408f
100644
(file)
--- a/
giscanner/transformer.py
+++ b/
giscanner/transformer.py
@@
-295,6
+295,10
@@
class Transformer(object):
if not self._type_is_callback(param.type):
continue
+ # set a default scope
+ if param.scope is None:
+ param.scope = 'call'
+
# j is the index where we look for closure/destroy to
# group with the callback param
j = i + 1