From afe696cafd391f46066c983feaa819966c1d8403 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Wed, 12 Nov 2008 12:59:01 +0000 Subject: [PATCH] Change the element type from utf8 to filename Special case filename 2008-11-12 Johan Dahlin * girepository/girepository.c: Change the element type from utf8 to filename * girepository/girnode.c (g_ir_node_build_typelib): Special case filename equally to utf8 here. svn path=/trunk/; revision=895 --- girepository.c | 2 +- girnode.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/girepository.c b/girepository.c index 392118d9c..0a4d4ebdd 100644 --- a/girepository.c +++ b/girepository.c @@ -144,7 +144,7 @@ g_irepository_prepend_search_path (const char *directory) * The string is internal to GIRespository and should not be freed, nor should * the elements. * - * Return value: (element-type utf8) (transfer none): list of strings + * Return value: (element-type filename) (transfer none): list of strings */ GSList * g_irepository_get_search_path (void) diff --git a/girnode.c b/girnode.c index 87b418c8f..92998ed36 100644 --- a/girnode.c +++ b/girnode.c @@ -1366,7 +1366,8 @@ g_ir_node_build_typelib (GIrNode *node, *offset += 4; if (type->tag < GI_TYPE_TAG_ARRAY || - type->tag == GI_TYPE_TAG_UTF8) + type->tag == GI_TYPE_TAG_UTF8 || + type->tag == GI_TYPE_TAG_FILENAME) { blob->reserved = 0; blob->reserved2 = 0;