From 4402ea34def027b971a8523844fd95e13cfa2e57 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Fri, 24 May 2013 16:46:35 +0100 Subject: Fixed mistake in last commit. --- src/fe-gtk/setup.c | 5 ++++- src/fe-gtk/sexy-spell-entry.c | 13 ------------- src/fe-gtk/sexy-spell-entry.h | 1 - 3 files changed, 4 insertions(+), 15 deletions(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index 19d2ee5a..20783259 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -2013,7 +2013,10 @@ setup_apply_to_sess (session_gui *gui) #endif #ifdef USE_LIBSEXY - sexy_spell_entry_update_languages ((SexySpellEntry *)gui->input_box); + /* update active languages */ + sexy_spell_entry_deactivate_language((SexySpellEntry *)gui->input_box,NULL); + sexy_spell_entry_activate_default_languages((SexySpellEntry *)gui->input_box); + sexy_spell_entry_set_checked ((SexySpellEntry *)gui->input_box, prefs.hex_gui_input_spell); #endif } diff --git a/src/fe-gtk/sexy-spell-entry.c b/src/fe-gtk/sexy-spell-entry.c index b1b1cbb7..2d83fb86 100644 --- a/src/fe-gtk/sexy-spell-entry.c +++ b/src/fe-gtk/sexy-spell-entry.c @@ -942,19 +942,6 @@ 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. diff --git a/src/fe-gtk/sexy-spell-entry.h b/src/fe-gtk/sexy-spell-entry.h index 1c38efa4..1c761235 100644 --- a/src/fe-gtk/sexy-spell-entry.h +++ b/src/fe-gtk/sexy-spell-entry.h @@ -78,7 +78,6 @@ GSList *sexy_spell_entry_get_active_languages(SexySpellEntry *entry); gboolean sexy_spell_entry_is_checked(SexySpellEntry *entry); void sexy_spell_entry_set_checked(SexySpellEntry *entry, gboolean checked); void sexy_spell_entry_activate_default_languages(SexySpellEntry *entry); -void sexy_spell_entry_update_languages(SexySpellEntry *entry); G_END_DECLS -- cgit 1.4.1