Change the element type from utf8 to filename Special case filename
authorJohan Dahlin <jdahlin@async.com.br>
Wed, 12 Nov 2008 12:59:01 +0000 (12:59 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Wed, 12 Nov 2008 12:59:01 +0000 (12:59 +0000)
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

ChangeLog
girepository/girepository.c
girepository/girnode.c

index 0a4e7b4..6257f98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
 2008-11-12  Johan Dahlin  <jdahlin@async.com.br>
 
        * gir/Makefile.am:
index 392118d..0a4d4eb 100644 (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)
index 87b418c..92998ed 100644 (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;