+2008-11-13 Andreas Rottmann <a.rottmann@gmx.at>
+
+ Bug 557788 - Return types for constructors in generated typelib bogus
+
+ * girepository/girnode.c: Namespace-qualify XREFs; not doing so is
+ obviously broken in the face of duplicate names in different
+ namespaces.
+ * tests/scanner/*expected.gir: Fix up.
+
2008-11-13 Owen Taylor <otaylor@redhat.com>
* girepository/girffi.c: Fix "Unexpected time for time_t"
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);
</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">
<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">
</class>
<record name="SubobjectClass">
<field name="parent_class">
- <type name="GObject.ObjectClass"/>
+ <type name="ObjectClass"/>
</field>
</record>
<function name="init" c:identifier="foo_init">
</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"/>
</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"/>