diff options
author | Colin Walters <walters@verbum.org> | 2009-12-03 18:40:36 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-12-08 08:57:18 -0500 |
commit | 7db185366e16b91b276d3b5876450c90ca02f398 (patch) | |
tree | c706941c463b5180ff9120a422b5847c12d915e4 /giscanner/transformer.py | |
parent | ecc9a1da43dede9aed64fe34a00bbf8aa9dc590a (diff) | |
download | gobject-introspection-7db185366e16b91b276d3b5876450c90ca02f398.tar.gz |
[transformer] Look up callback types in the full name set, not just typedefs
When looking up GINames, we should look in _names.names.
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r-- | giscanner/transformer.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py index a131e3c1..bc5d943d 100644 --- a/giscanner/transformer.py +++ b/giscanner/transformer.py @@ -267,8 +267,10 @@ class Transformer(object): symbol.ident) def _type_is_callback(self, type): - if (isinstance(type, Callback) or - isinstance(self._typedefs_ns.get(type.name), Callback)): + if isinstance(type, Callback): + return True + node = self._names.names.get(type.name) + if node and isinstance(node[1], Callback): return True return False |