summaryrefslogtreecommitdiff
path: root/src/myspell/myspell_checker.cpp
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2009-05-22 21:34:06 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2009-05-22 21:34:06 +0000
commiteceb0e0441abbc696cee6d4c00ba1a226351038c (patch)
tree99e453056505ab854000b3bead47cdde087c4aa9 /src/myspell/myspell_checker.cpp
parent38d3b1737836861a1bed5d8b4f05e8b3c0aa4a89 (diff)
downloadenchant-eceb0e0441abbc696cee6d4c00ba1a226351038c.tar.gz
myspell and ispell now query for any programatically-set dictionary paths. the function that parses the path is not yet implemented.
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@26482 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
Diffstat (limited to 'src/myspell/myspell_checker.cpp')
-rw-r--r--src/myspell/myspell_checker.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/myspell/myspell_checker.cpp b/src/myspell/myspell_checker.cpp
index 88f9636..6ee761e 100644
--- a/src/myspell/myspell_checker.cpp
+++ b/src/myspell/myspell_checker.cpp
@@ -280,6 +280,20 @@ myspell_checker_get_dictionary_dirs (EnchantBroker * broker)
}
#endif
+ {
+ GSList *config_dirs, *iter;
+
+ config_dirs = enchant_get_dirs_from_param (broker, "enchant.myspell.dictionary.path");
+
+ for (iter = config_dirs; iter; iter = iter->next)
+ {
+ dirs = g_slist_append (dirs, g_strdup ((const gchar *)iter->data));
+ }
+
+ g_slist_foreach (config_dirs, (GFunc)g_free, NULL);
+ g_slist_free (config_dirs);
+ }
+
return dirs;
}