diff options
author | Diogo Sousa <diogogsousa@gmail.com> | 2013-05-24 00:01:25 +0100 |
---|---|---|
committer | Diogo Sousa <diogogsousa@gmail.com> | 2013-05-24 00:01:25 +0100 |
commit | faa53a5335d2536afc33c1082bf7a946061740e1 (patch) | |
tree | d4a9b2b9a3185fbe9c5c3dc4b2c264ec8a59806f /src/fe-gtk/sexy-spell-entry.c | |
parent | 44a88fc1ab604de35f5319eedac73c7211db992f (diff) |
Spell check dictionaries were not being updated when changed.
Diffstat (limited to 'src/fe-gtk/sexy-spell-entry.c')
-rw-r--r-- | src/fe-gtk/sexy-spell-entry.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fe-gtk/sexy-spell-entry.c b/src/fe-gtk/sexy-spell-entry.c index 2d83fb86..b1b1cbb7 100644 --- a/src/fe-gtk/sexy-spell-entry.c +++ b/src/fe-gtk/sexy-spell-entry.c @@ -943,6 +943,19 @@ enchant_has_lang(const gchar *lang, GSList *langs) { #endif /** + * sexy_spell_entry_update_languages: + * @entry: A #SexySpellEntry. + * + * Update active languages. + */ +void +sexy_spell_entry_update_languages (SexySpellEntry *entry) +{ + sexy_spell_entry_deactivate_language(entry,NULL); + sexy_spell_entry_activate_default_languages(entry); +} + +/** * sexy_spell_entry_activate_default_languages: * @entry: A #SexySpellEntry. * |