Change the element type from utf8 to filename Special case filename

2008-11-12  Johan Dahlin  <jdahlin@async.com.br>

        * 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
This commit is contained in:
Johan Dahlin 2008-11-12 12:59:01 +00:00 committed by Johan Dahlin
parent bc1f9c5bbb
commit afe696cafd
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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;