[gobject-introspection] [transformer] Look up callback types in the full name set, not just typedefs
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [transformer] Look up callback types in the full name set, not just typedefs
- Date: Tue, 8 Dec 2009 13:56:28 +0000 (UTC)
commit 7db185366e16b91b276d3b5876450c90ca02f398
Author: Colin Walters <walters verbum org>
Date: Thu Dec 3 18:40:36 2009 -0500
[transformer] Look up callback types in the full name set, not just typedefs
When looking up GINames, we should look in _names.names.
giscanner/transformer.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index a131e3c..bc5d943 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]