Parse new implements syntax, drop gapi one. Update. Generate new syntax.

2008-08-25  Colin Walters  <walters@verbum.org>

	* girepository/girparser.c: Parse new implements
	syntax, drop gapi one.
	* tests/object.gir: Update.
	* tools/generate.c: Generate new syntax.

svn path=/trunk/; revision=492
This commit is contained in:
Colin Walters 2008-08-25 15:22:39 +00:00 committed by Philip Withnall
parent fc4cffc61d
commit c306fea286

View File

@ -787,16 +787,14 @@ write_object_info (const gchar *namespace,
if (g_object_info_get_n_interfaces (info) > 0) if (g_object_info_get_n_interfaces (info) > 0)
{ {
g_fprintf (file, " <implements>\n");
for (i = 0; i < g_object_info_get_n_interfaces (info); i++) for (i = 0; i < g_object_info_get_n_interfaces (info); i++)
{ {
GIInterfaceInfo *imp = g_object_info_get_interface (info, i); GIInterfaceInfo *imp = g_object_info_get_interface (info, i);
g_fprintf (file, " <interface name=\""); g_fprintf (file, " <implements name=\"");
write_type_name (namespace, (GIBaseInfo*)imp, file); write_type_name (namespace, (GIBaseInfo*)imp, file);
g_fprintf (file,"\" />\n"); g_fprintf (file,"\" />\n");
g_base_info_unref ((GIBaseInfo*)imp); g_base_info_unref ((GIBaseInfo*)imp);
} }
g_fprintf (file, " </implements>\n");
} }
for (i = 0; i < g_object_info_get_n_fields (info); i++) for (i = 0; i < g_object_info_get_n_fields (info); i++)