[gobject-introspection/wip/transformer] scanner: Add a hack for AtkAttributeSet
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/transformer] scanner: Add a hack for AtkAttributeSet
- Date: Wed, 25 Aug 2010 19:55:42 +0000 (UTC)
commit 74fb587af6c731c34c06c2fbc6f20394a97f189b
Author: Colin Walters <walters verbum org>
Date: Wed Aug 25 15:55:25 2010 -0400
scanner: Add a hack for AtkAttributeSet
giscanner/primarytransformer.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/primarytransformer.py b/giscanner/primarytransformer.py
index d542ef6..0bf91f5 100644
--- a/giscanner/primarytransformer.py
+++ b/giscanner/primarytransformer.py
@@ -45,6 +45,15 @@ class PrimaryTransformer(object):
# Public API
def transform(self):
+ # Dirty hack for now...maybe eventually we'll support the "typedef GSList FooSet"
+ # pattern.
+ if self._namespace.name == 'Atk':
+ attribute = self._namespace.get('Attribute')
+ attributeset = self._namespace.get('AttributeSet')
+ if attribute and attributeset:
+ alias = ast.Alias('AttributeSet', target=ast.TYPE_ANY)
+ self._namespace.append(alias, replace=True)
+
# We have a rough tree which should have most of of the types
# we know about. Let's attempt closure; walk over all of the
# Type() types and see if they match up with something.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]