summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-02-17 14:27:40 +0800
committerraveit65 <[email protected]>2019-02-17 16:14:36 +0100
commit73e0a823b1c040beb68bc48b8279bcef11115a3f (patch)
treef7e5b5b755d99bb975564622d3169f0f4af369d7 /plugins
parent87df43f876abd0f74ceecfb6ec3812edac30381f (diff)
downloadpluma-73e0a823b1c040beb68bc48b8279bcef11115a3f.tar.bz2
pluma-73e0a823b1c040beb68bc48b8279bcef11115a3f.tar.xz
Replace the deprecated enchant_dict_add_to_pwl with enchant_dict_add.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/spell/pluma-spell-checker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/spell/pluma-spell-checker.c b/plugins/spell/pluma-spell-checker.c
index d33bf92f..0bc5cd9f 100644
--- a/plugins/spell/pluma-spell-checker.c
+++ b/plugins/spell/pluma-spell-checker.c
@@ -433,7 +433,8 @@ pluma_spell_checker_add_word_to_personal (PlumaSpellChecker *spell,
if (len < 0)
len = strlen (word);
- enchant_dict_add_to_pwl (spell->dict, word, len);
+ enchant_dict_add (spell->dict, word, len);
+
g_signal_emit (G_OBJECT (spell), signals[ADD_WORD_TO_PERSONAL], 0, word, len);