[gobject-introspection] scanner: Also look for enums and bitfields with GType names



commit 8c8b6f39b9d6e3863b45afe67d8a0a58c1c24fff
Author: Colin Walters <walters verbum org>
Date:   Wed Sep 1 18:20:06 2010 -0400

    scanner: Also look for enums and bitfields with GType names

 giscanner/transformer.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index de9d7ca..73430e2 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -823,7 +823,9 @@ in contrast to the other create_type() functions."""
         for ns in self._iter_namespaces():
             for node in ns.itervalues():
                 if not isinstance(node, (ast.Class, ast.Interface,
-                                         glibast.GLibBoxed)):
+                                         glibast.GLibBoxed,
+                                         glibast.GLibEnum,
+                                         glibast.GLibFlags)):
                     continue
                 if node.type_name == typeval.gtype_name:
                     typeval.target_giname = '%s.%s' % (ns.name, node.name)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]