[gobject-introspection] [girepository] Fix ordering in override_search_path
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] [girepository] Fix ordering in override_search_path
- Date: Thu, 15 Jul 2010 22:23:40 +0000 (UTC)
commit 103087b785d4f09c963646d66d1c023af7a92ab5
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jul 15 23:40:28 2010 +0200
[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.
girepository/girepository.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/girepository/girepository.c b/girepository/girepository.c
index ef3d6d2..df09d82 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]