[empathy/gnome-2-28] Ignoring non installed languages
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-28] Ignoring non installed languages
- Date: Wed, 21 Oct 2009 09:22:26 +0000 (UTC)
commit 0e42dd141a98a8d328456804ee9b0ed5770b7411
Author: Felix Kaser <f kaser gmx net>
Date: Tue Oct 20 10:20:02 2009 +0200
Ignoring non installed languages
Languages which are in the gconf setting but are not installed any more are ignored, fixes bug #598954
libempathy-gtk/empathy-spell.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-spell.c b/libempathy-gtk/empathy-spell.c
index 076e81a..3443fd9 100644
--- a/libempathy-gtk/empathy-spell.c
+++ b/libempathy-gtk/empathy-spell.c
@@ -219,7 +219,12 @@ spell_setup_languages (void)
lang->config = enchant_broker_init ();
lang->speller = enchant_broker_request_dict (lang->config, strv[i]);
- languages = g_list_append (languages, lang);
+ if (lang->speller == NULL) {
+ DEBUG ("language '%s' has no valid dict", strv[i]);
+ } else {
+ languages = g_list_append (languages, lang);
+ }
+
i++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]