Mercurial > hg
diff mcabber/src/main.c @ 1590:8d1bcc83ae32
Add support for spellchecking with Enchant (caolan)
Patch from the issue tracker:
http://bitbucket.org/McKael/mcabber-crew/issue/36/patch-to-spell-checking-using-enchant
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 04 Oct 2009 19:33:38 +0200 |
parents | 31472d421267 |
children | 4f59a414217e |
line wrap: on
line diff
--- a/mcabber/src/main.c Sun Oct 04 18:39:08 2009 +0200 +++ b/mcabber/src/main.c Sun Oct 04 19:33:38 2009 +0200 @@ -300,6 +300,9 @@ #ifdef HAVE_LIBOTR puts("Compiled with OTR support."); #endif +#ifdef WITH_ENCHANT + puts("Compiled with Enchant support."); +#endif #ifdef WITH_ASPELL puts("Compiled with Aspell support."); #endif @@ -470,9 +473,9 @@ if (optval || optval2) hlog_enable(optval, settings_opt_get("logging_dir"), optval2); -#ifdef HAVE_ASPELL_H - /* Initialize aspell */ - if (settings_opt_get_int("aspell_enable")) { +#if defined(WITH_ENCHANT) || defined(WITH_ASPELL) + /* Initialize spelling */ + if (settings_opt_get_int("spell_enable")) { spellcheck_init(); } #endif @@ -544,9 +547,9 @@ #ifdef HAVE_GPGME gpg_terminate(); #endif -#ifdef HAVE_ASPELL_H - /* Deinitialize aspell */ - if (settings_opt_get_int("aspell_enable")) +#if defined(WITH_ENCHANT) || defined(WITH_ASPELL) + /* Deinitialize spelling */ + if (settings_opt_get_int("spell_enable")) spellcheck_deinit(); #endif /* Save pending message state */