Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
[transformer] Look up callback types in the full name set, not just t…
Browse files Browse the repository at this point in the history
…ypedefs

When looking up GINames, we should look in _names.names.
  • Loading branch information
cgwalters committed Dec 8, 2009
1 parent ecc9a1d commit 7db1853
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions giscanner/transformer.py
Expand Up @@ -267,8 +267,10 @@ def _create_object(self, symbol):
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

Expand Down

0 comments on commit 7db1853

Please sign in to comment.