summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-11-17 00:27:39 +0000
committerColin Walters <walters@src.gnome.org>2008-11-17 00:27:39 +0000
commitac563ee689208d4c7472074c08f5306140841e10 (patch)
tree375c72e0b6a579d00fcc30c32b98c2fea3b99b27 /tools
parent8352e42478f7a088aa0eac7c511f9ac6f0c62101 (diff)
downloadgobject-introspection-ac563ee689208d4c7472074c08f5306140841e10.tar.gz
Also generate new syntax
svn path=/trunk/; revision=933
Diffstat (limited to 'tools')
-rw-r--r--tools/generate.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/generate.c b/tools/generate.c
index 840de7ca..7c849bcd 100644
--- a/tools/generate.c
+++ b/tools/generate.c
@@ -986,24 +986,19 @@ write_interface_info (const gchar *namespace,
if (deprecated)
xml_printf (file, " deprecated=\"1\"");
-
if (g_interface_info_get_n_prerequisites (info) > 0)
{
- xml_start_element (file, "requires");
for (i = 0; i < g_interface_info_get_n_prerequisites (info); i++)
{
GIBaseInfo *req = g_interface_info_get_prerequisite (info, i);
-
- if (g_base_info_get_type (req) == GI_INFO_TYPE_INTERFACE)
- xml_start_element (file, "interface");
- else
- xml_start_element (file, "object");
+
+ xml_start_element (file, "prerequisite");
write_type_name_attribute (namespace, req, "name", file);
+
xml_end_element_unchecked (file);
g_base_info_unref (req);
}
- xml_end_element (file, "requires");
}
for (i = 0; i < g_interface_info_get_n_methods (info); i++)