From 6114478cf8f104a6b6a07fd9d59cecd4abf7d3d2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 30 Aug 2008 20:31:12 +0000 Subject: [PATCH] Remove g_irepository_unregister, add GIRepositoryLoadFlags svn path=/trunk/; revision=543 --- girepository/tools/compiler.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/girepository/tools/compiler.c b/girepository/tools/compiler.c index c2d224822..6af0a89ad 100644 --- a/girepository/tools/compiler.c +++ b/girepository/tools/compiler.c @@ -81,16 +81,8 @@ format_output (GTypelib *typelib) "{\n" "\tGTypelib *typelib;\n" "\ttypelib = g_typelib_new_from_const_memory (_G_TYPELIB, _G_TYPELIB_SIZE);\n" - "\tg_irepository_load_typelib (NULL, typelib, NULL);\n" + "\tg_irepository_load_typelib (NULL, typelib, G_IREPOSITORY_LOAD_FLAG_LAZY, NULL);\n" "}\n\n"); - - g_string_append_printf (result, - "__attribute__((destructor)) void\n" - "unregister_typelib (void)\n" - "{\n" - "\tg_irepository_unregister (NULL, \"%s\");\n" - "}\n", - g_typelib_get_namespace (typelib)); } return g_string_free (result, FALSE);