summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-02-17 14:27:40 +0800
committerraveit65 <[email protected]>2019-03-10 11:31:19 +0100
commit433317ad142e91179fbfce2ce9e24bfc24edb46c (patch)
tree8a1070db8887aa4d875498cb036491e34144adee
parent50a3efc8310bb42ca476b3fd938618081cf5f7f0 (diff)
downloadpluma-433317ad142e91179fbfce2ce9e24bfc24edb46c.tar.bz2
pluma-433317ad142e91179fbfce2ce9e24bfc24edb46c.tar.xz
Replace the deprecated enchant_dict_add_to_pwl with enchant_dict_add.
-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);