diff options
Diffstat (limited to 'girepository/girwriter.c')
-rw-r--r-- | girepository/girwriter.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/girepository/girwriter.c b/girepository/girwriter.c index 7b255423..80c0c345 100644 --- a/girepository/girwriter.c +++ b/girepository/girwriter.c @@ -984,6 +984,7 @@ write_object_info (const gchar *namespace, gboolean deprecated; gboolean is_abstract; gboolean is_fundamental; + gboolean is_final; GIObjectInfo *pnode; GIStructInfo *class_struct; gint i; @@ -992,6 +993,7 @@ write_object_info (const gchar *namespace, deprecated = g_base_info_is_deprecated ((GIBaseInfo *)info); is_abstract = g_object_info_get_abstract (info); is_fundamental = g_object_info_get_fundamental (info); + is_final = g_object_info_get_final (info); type_name = g_registered_type_info_get_type_name ((GIRegisteredTypeInfo*)info); type_init = g_registered_type_info_get_type_init ((GIRegisteredTypeInfo*)info); @@ -1015,6 +1017,9 @@ write_object_info (const gchar *namespace, if (is_abstract) xml_printf (file, " abstract=\"1\""); + if (is_final) + xml_printf (file, " final=\"1\""); + xml_printf (file, " glib:type-name=\"%s\" glib:get-type=\"%s\"", type_name, type_init); if (is_fundamental) |