[gobject-introspection/wip/transformer] more fixes
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/transformer] more fixes
- Date: Tue, 20 Jul 2010 15:39:47 +0000 (UTC)
commit 8b71a24b3f50f8af7435557c9784f002e416b31b
Author: Colin Walters <walters verbum org>
Date: Mon Jul 19 17:27:22 2010 -0400
more fixes
giscanner/glibtransformer.py | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/giscanner/glibtransformer.py b/giscanner/glibtransformer.py
index 05ba2f1..d3ed7d5 100644
--- a/giscanner/glibtransformer.py
+++ b/giscanner/glibtransformer.py
@@ -163,15 +163,21 @@ class GLibTransformer(object):
def _pass_type_resolution(self, node, chain):
if isinstance(node, Alias):
self._transformer.resolve_type(node.target)
- elif isinstance(node, Callable):
+ if isinstance(node, Callable):
for parameter in node.parameters:
self._transformer.resolve_type(parameter.type)
self._transformer.resolve_type(node.retval.type)
- elif isinstance(node, Constant):
+ if isinstance(node, Constant):
self._transformer.resolve_type(node.value_type)
- elif isinstance(node, (Class, Interface, Record, Union)):
+ if isinstance(node, (Class, Interface, Record, Union)):
for field in node.fields:
self._transformer.resolve_type(field.type)
+ if isinstance(node, (Class, Interface)):
+ for parent in node.parent_chain:
+ try:
+
+ for prop in node.properties:
+ self._transformer.resolve_type(prop.type)
def _resolve_quarks(self):
# self._uscore_type_names is an authoritative mapping of types
@@ -535,7 +541,7 @@ blob containing data gleaned from GObject's primitive introspection."""
self._namespace.append(gclass_struct, replace=True)
pair_class.glib_type_struct = gclass_struct
pair_class.inherit_file_positions(class_struct)
- gclass_struct.is_gtype_struct_for = maybe_class.create_type()
+ gclass_struct.is_gtype_struct_for = pair_class.create_type()
# Introspection over the data we get from the dynamic
# GObject/GType system out of the binary
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]