diff options
Diffstat (limited to 'src/ispell/ispell_checker.cpp')
-rw-r--r-- | src/ispell/ispell_checker.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ispell/ispell_checker.cpp b/src/ispell/ispell_checker.cpp index fd1fdf4..59aad47 100644 --- a/src/ispell/ispell_checker.cpp +++ b/src/ispell/ispell_checker.cpp @@ -357,6 +357,20 @@ ispell_checker_get_dictionary_dirs (EnchantBroker * broker) dirs = g_slist_append (dirs, g_strdup (ENCHANT_ISPELL_DICT_DIR)); #endif + { + GSList *config_dirs, *iter; + + config_dirs = enchant_get_dirs_from_param (broker, "enchant.ispell.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; } |