+2008-10-13 Jürg Billeter <j@bitron.ch>
+
+ * giscanner/glibtransformer.py:
+ * tests/scanner/annotation-1.0-expected.gir:
+ * tests/scanner/drawable-1.0-expected.gir:
+ * tests/scanner/foo-1.0-expected.gir:
+ * tests/scanner/utility-1.0-expected.gir:
+
+ Support fields in GObject structs
+
2008-10-13 Jürg Billeter <j@bitron.ch>
* giscanner/ast.py: add signed integer and off_t to type_names
self._introspect_properties(node, type_id)
self._introspect_signals(node, type_id)
self._introspect_implemented_interfaces(node, type_id)
+
+ # add struct fields
+ struct = self._get_attribute(node.name)
+ if struct is not None:
+ node.fields = struct.fields
+
self._add_attribute(node, replace=True)
self._register_internal_type(type_name, node)
<type name="GObject.Object" c:type="GObject*"/>
</return-value>
</method>
+ <field name="parent_instance">
+ <type name="GObject.Object" c:type="GObject"/>
+ </field>
</class>
<record name="ObjectClass" c:type="AnnotationObjectClass">
<field name="parent_class">
</parameter>
</parameters>
</method>
+ <field name="parent_instance">
+ <type name="GObject.Object" c:type="GObject"/>
+ </field>
</class>
<record name="TestDrawableClass" c:type="TestDrawableClass">
<field name="parent_class">
<property name="string" writable="1">
<type name="utf8" c:type="gchararray"/>
</property>
+ <field name="parent_instance">
+ <type name="GObject.Object" c:type="GObject"/>
+ </field>
<callback name="virtual_method" c:type="virtual_method">
<return-value>
<type name="boolean" c:type="gboolean"/>
<type name="Subobject" c:type="FooSubobject*"/>
</return-value>
</constructor>
+ <field name="parent_instance">
+ <type name="Object" c:type="FooObject"/>
+ </field>
</class>
<record name="SubobjectClass" c:type="FooSubobjectClass">
<field name="parent_class">
parent="GObject.Object"
glib:type-name="UtilityObject"
glib:get-type="utility_object_get_type">
+ <field name="parent_instance">
+ <type name="GObject.Object" c:type="GObject"/>
+ </field>
</class>
<record name="ObjectClass" c:type="UtilityObjectClass">
<field name="parent_class">