summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2010-07-15 23:40:28 +0200
committerFlorian Müllner <fmuellner@gnome.org>2010-07-15 23:40:28 +0200
commit103087b785d4f09c963646d66d1c023af7a92ab5 (patch)
tree02c227952aacdd3df504eeacd62ba534e7c26a11 /girepository
parent4b7cb27d3d9fa029ce0bf03025b1d339ce6a2a5f (diff)
[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.
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girepository.c3
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);