balsa r7922 - in trunk: . src
- From: PeterB svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r7922 - in trunk: . src
- Date: Tue, 29 Apr 2008 18:20:46 +0100 (BST)
Author: PeterB
Date: Tue Apr 29 17:20:45 2008
New Revision: 7922
URL: http://svn.gnome.org/viewvc/balsa?rev=7922&view=rev
Log:
fix whining from Enchant via GtkSpell
Modified:
trunk/ChangeLog
trunk/src/sendmsg-window.c
Modified: trunk/src/sendmsg-window.c
==============================================================================
--- trunk/src/sendmsg-window.c (original)
+++ trunk/src/sendmsg-window.c Tue Apr 29 17:20:45 2008
@@ -4342,6 +4342,11 @@
#if HAVE_GTKSPELL
GtkSpell *spell;
+ if (locales[i].locale == NULL || locales[i].locale[0] == '\0')
+ /* GtkSpell handles NULL lang, but complains about empty
+ * lang; in either case, it does not go in the langs menu. */
+ continue;
+
spell = gtkspell_new_attach(GTK_TEXT_VIEW(bsmsg->text),
locales[i].locale, NULL);
if (spell) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]