diff options
author | Eric Albright <eric_albright@sil.org> | 2008-04-27 13:04:10 +0000 |
---|---|---|
committer | Eric Albright <eric_albright@sil.org> | 2008-04-27 13:04:10 +0000 |
commit | 37bf702437d0d2800176aa47fdf0925246676403 (patch) | |
tree | d619773650ed16a763d85a04b008081617a0cd7a | |
parent | cde6cb8322fccc10f5b8c88ca9f53ce608b4d220 (diff) | |
download | enchant-37bf702437d0d2800176aa47fdf0925246676403.tar.gz |
enchant_get_conf_dirs gets user locations as well as system locations
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@23637 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | src/enchant.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/enchant.c b/src/enchant.c index 460615e..7c0caea 100644 --- a/src/enchant.c +++ b/src/enchant.c @@ -222,8 +222,17 @@ enchant_get_module_dirs (void) static GSList * enchant_get_conf_dirs (void) { - GSList *conf_dirs = NULL; - char * ordering_dir = NULL, * prefix = NULL;; + GSList *conf_dirs = NULL, *user_conf_dirs, *iter; + char * ordering_dir = NULL, * prefix = NULL; + + user_conf_dirs = enchant_get_user_config_dirs(); + + for (iter = user_conf_dirs; iter != NULL; iter = iter->next) + { + conf_dirs = g_slist_append (conf_dirs, iter->data); + } + + g_slist_free (user_conf_dirs); #ifdef XP_TARGET_COCOA conf_dirs = g_slist_append (conf_dirs, g_strdup ([[EnchantResourceProvider instance] configFolder])); |