diff options
author | Dom Lachowicz <domlachowicz@gmail.com> | 2004-04-05 12:42:38 +0000 |
---|---|---|
committer | Dom Lachowicz <domlachowicz@gmail.com> | 2004-04-05 12:42:38 +0000 |
commit | d156c654c4a864f03b2047404a250c8de40228cf (patch) | |
tree | f76348efdb80cbede0b0f8a9d2a011b6cb60dad7 | |
parent | b42aef506000e17e845647f972c06968b1c76b4e (diff) | |
download | enchant-d156c654c4a864f03b2047404a250c8de40228cf.tar.gz |
PWL stuff
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@20924 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | src/enchant.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/enchant.c b/src/enchant.c index ccd2e7f..6643242 100644 --- a/src/enchant.c +++ b/src/enchant.c @@ -67,6 +67,8 @@ typedef struct str_enchant_session char * error; + gboolean is_pwl; + EnchantProvider * provider; } EnchantSession; @@ -444,10 +446,10 @@ enchant_dict_check (EnchantDict * dict, const char *const word, size_t len) if (dict->check) return (*dict->check) (dict, word, len); - else - return -1; + else if (session->is_pwl) + return 1; - return 1; + return -1; } /** @@ -1009,6 +1011,8 @@ enchant_broker_request_pwl_dict (EnchantBroker * broker, const char *const pwl) return NULL; } + session->is_pwl = 1; + dict = g_new0 (EnchantDict, 1); dict->enchant_private_data = (void *)session; |