diff --git a/girepository/tools/generate.c b/girepository/tools/generate.c index 1292c3d70..226f1ac1d 100644 --- a/girepository/tools/generate.c +++ b/girepository/tools/generate.c @@ -242,8 +242,6 @@ write_callable_info (const gchar *namespace, GITypeInfo *type; gint i; - g_fprintf (file, "%*s \n", indent, ""); - type = g_callable_info_get_return_type (info); if (g_type_info_is_pointer (type)) @@ -263,6 +261,11 @@ write_callable_info (const gchar *namespace, g_assert_not_reached (); } } + + g_fprintf (file, ">\n"); + + g_fprintf (file, "%*s \n", indent, ""); + g_base_info_unref ((GIBaseInfo *)type); if (g_callable_info_may_return_null (info)) g_fprintf (file, " null-ok=\"1\""); @@ -384,7 +387,6 @@ write_function_info (const gchar *namespace, if (deprecated) g_fprintf (file, " deprecated=\"1\""); - g_fprintf (file, ">\n"); write_callable_info (namespace, (GICallableInfo*)info, file, indent); g_fprintf (file, "%*s\n", indent, "", tag); } @@ -406,7 +408,6 @@ write_callback_info (const gchar *namespace, if (deprecated) g_fprintf (file, " deprecated=\"1\""); - g_fprintf (file, ">\n"); write_callable_info (namespace, (GICallableInfo*)info, file, indent); g_fprintf (file, "%*s\n", indent, ""); } @@ -563,15 +564,22 @@ write_constant_info (const gchar *namespace, name = g_base_info_get_name ((GIBaseInfo *)info); deprecated = g_base_info_is_deprecated ((GIBaseInfo *)info); - g_fprintf (file, "%*s\n"); + g_fprintf (file, "\">\n"); + + g_fprintf (file, "%*s\n"); + + g_fprintf (file, "%*s\n", indent, ""); g_base_info_unref ((GIBaseInfo *)type); } @@ -634,7 +642,7 @@ write_signal_info (const gchar *namespace, flags = g_signal_info_get_flags (info); deprecated = g_base_info_is_deprecated ((GIBaseInfo *)info); - g_fprintf (file, " \n"); - write_callable_info (namespace, (GICallableInfo*)info, file, 6); - g_fprintf (file, " \n"); + + g_fprintf (file, " \n"); } static void @@ -693,9 +700,9 @@ write_vfunc_info (const gchar *namespace, g_fprintf (file, " override=\"never\""); g_fprintf (file, " offset=\"%d\"", offset); - g_fprintf (file, ">\n"); write_callable_info (namespace, (GICallableInfo*)info, file, 6); + g_fprintf (file, " \n"); } @@ -735,11 +742,17 @@ write_property_info (const gchar *namespace, g_fprintf (file, " construct-only=\"1\""); type = g_property_info_get_type (info); - g_fprintf (file, " type=\""); - write_type_info (namespace, type, file); - g_fprintf (file, "\""); - g_fprintf (file, " />\n"); + g_fprintf (file, ">\n"); + + g_fprintf (file, " \n"); + + g_fprintf (file, " \n"); + } static void @@ -759,7 +772,7 @@ write_object_info (const gchar *namespace, type_name = g_registered_type_info_get_type_name ((GIRegisteredTypeInfo*)info); type_init = g_registered_type_info_get_type_init ((GIRegisteredTypeInfo*)info); - g_fprintf (file, " \n"); + g_fprintf (file, " \n"); } static void @@ -852,7 +865,7 @@ write_interface_info (const gchar *namespace, type_name = g_registered_type_info_get_type_name ((GIRegisteredTypeInfo*)info); type_init = g_registered_type_info_get_type_init ((GIRegisteredTypeInfo*)info); - g_fprintf (file, "