Spell check dictionaries were not being updated when changed.
This commit is contained in:
parent
44a88fc1ab
commit
faa53a5335
|
@ -2013,6 +2013,7 @@ setup_apply_to_sess (session_gui *gui)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_LIBSEXY
|
#ifdef USE_LIBSEXY
|
||||||
|
sexy_spell_entry_update_languages ((SexySpellEntry *)gui->input_box);
|
||||||
sexy_spell_entry_set_checked ((SexySpellEntry *)gui->input_box, prefs.hex_gui_input_spell);
|
sexy_spell_entry_set_checked ((SexySpellEntry *)gui->input_box, prefs.hex_gui_input_spell);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -942,6 +942,19 @@ enchant_has_lang(const gchar *lang, GSList *langs) {
|
||||||
}
|
}
|
||||||
#endif
|
#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:
|
* sexy_spell_entry_activate_default_languages:
|
||||||
* @entry: A #SexySpellEntry.
|
* @entry: A #SexySpellEntry.
|
||||||
|
|
|
@ -78,6 +78,7 @@ GSList *sexy_spell_entry_get_active_languages(SexySpellEntry *entry);
|
||||||
gboolean sexy_spell_entry_is_checked(SexySpellEntry *entry);
|
gboolean sexy_spell_entry_is_checked(SexySpellEntry *entry);
|
||||||
void sexy_spell_entry_set_checked(SexySpellEntry *entry, gboolean checked);
|
void sexy_spell_entry_set_checked(SexySpellEntry *entry, gboolean checked);
|
||||||
void sexy_spell_entry_activate_default_languages(SexySpellEntry *entry);
|
void sexy_spell_entry_activate_default_languages(SexySpellEntry *entry);
|
||||||
|
void sexy_spell_entry_update_languages(SexySpellEntry *entry);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue