gobject-introspection r354 - in trunk: . giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r354 - in trunk: . giscanner
- Date: Tue, 12 Aug 2008 19:20:44 +0000 (UTC)
Author: walters
Date: Tue Aug 12 19:20:43 2008
New Revision: 354
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=354&view=rev
Log:
2008-08-12 Colin Walters <walters verbum org>
* giscanner/glibtransformer.py: Also transform object properties.
Modified:
trunk/ChangeLog
trunk/giscanner/glibtransformer.py
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Tue Aug 12 19:20:43 2008
@@ -117,15 +117,18 @@
ntype = type(node)
if ntype in (Callback, Function):
self._resolve_function(node)
- elif ntype in (GLibObject, GLibBoxed):
+ if ntype in (GLibObject, GLibBoxed):
for meth in node.methods:
self._resolve_function(meth)
for ctor in node.constructors:
self._resolve_function(ctor)
- elif ntype in (Struct, ):
+ if ntype in (Struct, ):
for field in node.fields:
if isinstance(field, Field):
self._resolve_field(field)
+ if ntype in (GLibObject, ):
+ for prop in node.properties:
+ self._resolve_property(prop)
def _parse_enum(self, enum):
self._add_attribute(enum)
@@ -140,6 +143,9 @@
self._add_attribute(func)
+ def _resolve_property(self, prop):
+ prop.type = self._resolve_param_type(prop.type)
+
def _resolve_function(self, func):
self._resolve_parameters(func.parameters)
func.retval.type = self._resolve_param_type(func.retval.type)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]