gobject-introspection r679 - in trunk: . giscanner tests/scanner
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r679 - in trunk: . giscanner tests/scanner
- Date: Sun, 12 Oct 2008 14:40:48 +0000 (UTC)
Author: juergbi
Date: Sun Oct 12 14:40:48 2008
New Revision: 679
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=679&view=rev
Log:
2008-10-12 JÃrg Billeter <j bitron ch>
* giscanner/glibtransformer.py: Don't generate <record> elements
for class structs.
* tests/scanner/*: Update test cases
Modified:
trunk/ChangeLog
trunk/giscanner/glibtransformer.py
trunk/tests/scanner/annotation-1.0-expected.gir
trunk/tests/scanner/drawable-1.0-expected.gir
trunk/tests/scanner/drawable.h
trunk/tests/scanner/foo-1.0-expected.gir
trunk/tests/scanner/utility-1.0-expected.gir
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Sun Oct 12 14:40:48 2008
@@ -468,12 +468,6 @@
(GLibObject, GLibInterface)):
for field in maybe_class.fields[1:]:
pair_class.fields.append(field)
- return
- name = self._transformer.strip_namespace_object(maybe_class.name)
- pair_class = self._get_attribute(name)
- if pair_class and isinstance(pair_class,
- (GLibObject, GLibInterface)):
-
del self._names.names[maybe_class.name]
# Introspection
Modified: trunk/tests/scanner/annotation-1.0-expected.gir
==============================================================================
--- trunk/tests/scanner/annotation-1.0-expected.gir (original)
+++ trunk/tests/scanner/annotation-1.0-expected.gir Sun Oct 12 14:40:48 2008
@@ -169,10 +169,5 @@
</return-value>
</method>
</class>
- <record name="ObjectClass" c:type="AnnotationObjectClass">
- <field name="parent_class">
- <type name="GObject.Class" c:type="GObjectClass"/>
- </field>
- </record>
</namespace>
</repository>
Modified: trunk/tests/scanner/drawable-1.0-expected.gir
==============================================================================
--- trunk/tests/scanner/drawable-1.0-expected.gir (original)
+++ trunk/tests/scanner/drawable-1.0-expected.gir Sun Oct 12 14:40:48 2008
@@ -23,15 +23,5 @@
</parameters>
</method>
</class>
- <record name="TestDrawableClass" c:type="TestDrawableClass">
- <field name="parent_class">
- <type name="GObject.Class" c:type="GObjectClass"/>
- </field>
- </record>
- <record name="TestPixmapObjectClass" c:type="_TestPixmapObjectClass">
- <field name="parent_class">
- <type name="TestDrawableClass" c:type="TestDrawableClass"/>
- </field>
- </record>
</namespace>
</repository>
Modified: trunk/tests/scanner/drawable.h
==============================================================================
--- trunk/tests/scanner/drawable.h (original)
+++ trunk/tests/scanner/drawable.h Sun Oct 12 14:40:48 2008
@@ -20,9 +20,4 @@
void test_drawable_do_foo (TestDrawable *drawable, int x);
-struct _TestPixmapObjectClass
-{
- TestDrawableClass parent_class;
-};
-
#endif /* __TEST_DRAWABLE_H__ */
Modified: trunk/tests/scanner/foo-1.0-expected.gir
==============================================================================
--- trunk/tests/scanner/foo-1.0-expected.gir (original)
+++ trunk/tests/scanner/foo-1.0-expected.gir Sun Oct 12 14:40:48 2008
@@ -25,21 +25,6 @@
</parameters>
</callback>
</interface>
- <record name="InterfaceIface" c:type="FooInterfaceIface">
- <field name="parent_iface">
- <type name="GObject.TypeInterface" c:type="GTypeInterface"/>
- </field>
- <callback name="do_foo" c:type="do_foo">
- <return-value>
- <type name="none" c:type="void"/>
- </return-value>
- <parameters>
- <parameter name="self">
- <type name="Interface" c:type="FooInterface*"/>
- </parameter>
- </parameters>
- </callback>
- </record>
<class name="Object"
c:type="FooObject"
parent="GObject.Object"
@@ -153,24 +138,6 @@
</parameters>
</glib:signal>
</class>
- <record name="ObjectClass" c:type="FooObjectClass">
- <field name="parent_class">
- <type name="GObject.Class" c:type="GObjectClass"/>
- </field>
- <callback name="virtual_method" c:type="virtual_method">
- <return-value>
- <type name="boolean" c:type="gboolean"/>
- </return-value>
- <parameters>
- <parameter name="object">
- <type name="Object" c:type="FooObject*"/>
- </parameter>
- <parameter name="first_param">
- <type name="int" c:type="int"/>
- </parameter>
- </parameters>
- </callback>
- </record>
<class name="Subobject"
c:type="FooSubobject"
parent="Object"
@@ -183,11 +150,6 @@
</return-value>
</constructor>
</class>
- <record name="SubobjectClass" c:type="FooSubobjectClass">
- <field name="parent_class">
- <type name="ObjectClass" c:type="FooObjectClass"/>
- </field>
- </record>
<function name="init" c:identifier="foo_init">
<return-value>
<type name="int" c:type="gint"/>
Modified: trunk/tests/scanner/utility-1.0-expected.gir
==============================================================================
--- trunk/tests/scanner/utility-1.0-expected.gir (original)
+++ trunk/tests/scanner/utility-1.0-expected.gir Sun Oct 12 14:40:48 2008
@@ -12,11 +12,6 @@
glib:type-name="UtilityObject"
glib:get-type="utility_object_get_type">
</class>
- <record name="ObjectClass" c:type="UtilityObjectClass">
- <field name="parent_class">
- <type name="GObject.Class" c:type="GObjectClass"/>
- </field>
- </record>
<enumeration name="EnumType" c:type="UtilityEnumType">
<member name="a" value="0" c:identifier="UTILITY_ENUM_A"/>
<member name="b" value="1" c:identifier="UTILITY_ENUM_B"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]