Fix generator for constant/gobject/struct

2008-08-14  Johan Dahlin  <johan@gnome.org>

    * tests/Makefile.am:
    * tests/constant.gir:
    * tests/gobject.gir:
    * tests/struct.gir:
    * tools/generate.c (write_struct_info):
    Fix generator for constant/gobject/struct


svn path=/trunk/; revision=379
This commit is contained in:
Johan Dahlin 2008-08-14 19:45:37 +00:00 committed by Philip Withnall
parent 5d3fe6f2f0
commit 2f803f62e6

View File

@ -434,7 +434,7 @@ write_struct_info (const gchar *namespace,
g_fprintf (file, " <glib:boxed glib:name=\"%s\" glib:type-name=\"%s\" glib:get-type=\"%s\"", name, type_name, type_init);
}
else
g_fprintf (file, " <struct name=\"%s\"", name);
g_fprintf (file, " <record name=\"%s\"", name);
if (deprecated)
g_fprintf (file, " deprecated=\"1\"");
@ -458,7 +458,7 @@ write_struct_info (const gchar *namespace,
if (g_base_info_get_type ((GIBaseInfo *)info) == GI_INFO_TYPE_BOXED)
g_fprintf (file, " </glib:boxed>\n");
else
g_fprintf (file, " </struct>\n");
g_fprintf (file, " </record>\n");
}
static void