gobject-introspection r920 - in trunk: . girepository tests/scanner



Author: walters
Date: Thu Nov 13 22:56:15 2008
New Revision: 920
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=920&view=rev

Log:
Bug 557788 - Return types for constructors in generated typelib bogus

Modified:
   trunk/ChangeLog
   trunk/girepository/girnode.c
   trunk/tests/scanner/annotation-1.0-expected.tgir
   trunk/tests/scanner/foo-1.0-expected.tgir

Modified: trunk/girepository/girnode.c
==============================================================================
--- trunk/girepository/girnode.c	(original)
+++ trunk/girepository/girnode.c	Thu Nov 13 22:56:15 2008
@@ -1216,7 +1216,11 @@
 
       iface = find_entry_node (module, modules, node->interface, NULL);
       if (iface)
-	name = iface->name;
+        {
+          if (iface->type == G_IR_NODE_XREF)
+            g_string_append_printf (str, "%s.", ((GIrNodeXRef *)iface)->namespace);
+          name = iface->name;
+        }
       else
 	{
 	  g_warning ("Interface for type reference %s not found", node->interface);

Modified: trunk/tests/scanner/annotation-1.0-expected.tgir
==============================================================================
--- trunk/tests/scanner/annotation-1.0-expected.tgir	(original)
+++ trunk/tests/scanner/annotation-1.0-expected.tgir	Thu Nov 13 22:56:15 2008
@@ -143,7 +143,7 @@
       <method name="get_objects" c:identifier="annotation_object_get_objects">
         <return-value transfer-ownership="container">
           <type name="GLib.SList">
-            <type name="GObject.Object"/>
+            <type name="Object"/>
           </type>
         </return-value>
       </method>

Modified: trunk/tests/scanner/foo-1.0-expected.tgir
==============================================================================
--- trunk/tests/scanner/foo-1.0-expected.tgir	(original)
+++ trunk/tests/scanner/foo-1.0-expected.tgir	Thu Nov 13 22:56:15 2008
@@ -20,12 +20,12 @@
       </field>
       <constructor name="new" c:identifier="foo_object_new">
         <return-value transfer-ownership="full">
-          <type name="GObject.Object"/>
+          <type name="Object"/>
         </return-value>
       </constructor>
       <method name="external_type" c:identifier="foo_object_external_type">
         <return-value transfer-ownership="full">
-          <type name="GObject.Object"/>
+          <type name="utility.Object"/>
         </return-value>
       </method>
       <method name="various" c:identifier="foo_object_various">
@@ -118,7 +118,7 @@
     <class name="Subobject" parent="Object" abstract="1" glib:type-name="FooSubobject" glib:get-type="foo_subobject_get_type">
       <implements name="Interface"/>
       <field name="parent_instance">
-        <type name="GObject.Object"/>
+        <type name="Object"/>
       </field>
       <constructor name="new" c:identifier="foo_subobject_new">
         <return-value transfer-ownership="full">
@@ -128,7 +128,7 @@
     </class>
     <record name="SubobjectClass">
       <field name="parent_class">
-        <type name="GObject.ObjectClass"/>
+        <type name="ObjectClass"/>
       </field>
     </record>
     <function name="init" c:identifier="foo_init">
@@ -202,7 +202,7 @@
       </return-value>
       <parameters>
         <parameter name="foo" transfer-ownership="none">
-          <type name="GObject.Object"/>
+          <type name="Object"/>
         </parameter>
         <parameter name="b" transfer-ownership="none">
           <type name="boolean"/>
@@ -241,10 +241,10 @@
       </return-value>
       <parameters>
         <parameter name="object" transfer-ownership="none">
-          <type name="GObject.Object"/>
+          <type name="utility.Object"/>
         </parameter>
         <parameter name="e" transfer-ownership="none">
-          <type name="EnumType"/>
+          <type name="utility.EnumType"/>
         </parameter>
         <parameter name="f" transfer-ownership="none">
           <type name="utility.FlagType"/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]