From 73e0a823b1c040beb68bc48b8279bcef11115a3f Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Sun, 17 Feb 2019 14:27:40 +0800 Subject: Replace the deprecated enchant_dict_add_to_pwl with enchant_dict_add. --- plugins/spell/pluma-spell-checker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/spell/pluma-spell-checker.c') 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); -- cgit v1.2.1