mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-27 01:26:52 +02:00
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:
parent
bc1f9c5bbb
commit
afe696cafd
@ -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 string is internal to GIRespository and should not be freed, nor should
|
||||||
* the elements.
|
* the elements.
|
||||||
*
|
*
|
||||||
* Return value: (element-type utf8) (transfer none): list of strings
|
* Return value: (element-type filename) (transfer none): list of strings
|
||||||
*/
|
*/
|
||||||
GSList *
|
GSList *
|
||||||
g_irepository_get_search_path (void)
|
g_irepository_get_search_path (void)
|
||||||
|
@ -1366,7 +1366,8 @@ g_ir_node_build_typelib (GIrNode *node,
|
|||||||
*offset += 4;
|
*offset += 4;
|
||||||
|
|
||||||
if (type->tag < GI_TYPE_TAG_ARRAY ||
|
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->reserved = 0;
|
||||||
blob->reserved2 = 0;
|
blob->reserved2 = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user