Bug 557788 - Return types for constructors in generated typelib bogus

svn path=/trunk/; revision=920
This commit is contained in:
Colin Walters 2008-11-13 22:56:15 +00:00
parent 3b0bf76d21
commit 02020aeb20

View File

@ -1216,7 +1216,11 @@ serialize_type (GIrModule *module,
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);