[girepository] Fix ordering in override_search_path

Entries in the GI_TYPELIB_PATH environment variable are added to the
global search path in reverse order - instead, add entries in the
same order in which they are specified.
This commit is contained in:
Florian Müllner 2010-07-15 23:40:28 +02:00
parent 1b8bf7a4dc
commit 5b5ab282a6

View File

@ -131,6 +131,9 @@ init_globals (void)
g_free (custom_dirs);
}
if (override_search_path != NULL)
override_search_path = g_slist_reverse (override_search_path);
libdir = GOBJECT_INTROSPECTION_LIBDIR;
typelib_dir = g_build_filename (libdir, "girepository-1.0", NULL);