aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-10-02 02:54:10 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-10-02 02:54:10 +0800
commit5ee0670885b9037bb00b1da4d3437bb8a5852a5c (patch)
tree3a43cf9013da13ad61ae1c5963ad0e8bb7a67638 /mail
parentf32c0383937c70a877615aa1877093a75d89c3a1 (diff)
downloadgsoc2013-evolution-5ee0670885b9037bb00b1da4d3437bb8a5852a5c.tar.gz
gsoc2013-evolution-5ee0670885b9037bb00b1da4d3437bb8a5852a5c.tar.zst
gsoc2013-evolution-5ee0670885b9037bb00b1da4d3437bb8a5852a5c.zip
Only setup the languages if the language_seq is not CORBA_OBJECT_NIL.
2002-10-01 Jeffrey Stedfast <fejj@ximian.com> * mail-composer-prefs.c (spell_setup): Only setup the languages if the language_seq is not CORBA_OBJECT_NIL. Fixes bug #31559 (presumably at least). svn path=/trunk/; revision=18286
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-composer-prefs.c16
2 files changed, 13 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 8b3994f515..acc57414bf 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,9 @@
2002-10-01 Jeffrey Stedfast <fejj@ximian.com>
+ * mail-composer-prefs.c (spell_setup): Only setup the languages if
+ the language_seq is not CORBA_OBJECT_NIL. Fixes bug #31559
+ (presumably at least).
+
* mail-account-gui.c (mail_account_gui_new): Use
e_utf8_gtk_entry_set_text for the email address and reply-to
fields. Fixes bug #31555.
diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c
index 82ec642e47..a78359b431 100644
--- a/mail/mail-composer-prefs.c
+++ b/mail/mail-composer-prefs.c
@@ -714,13 +714,15 @@ spell_setup (MailComposerPrefs *prefs)
int i;
gtk_clist_freeze (GTK_CLIST (prefs->language));
- for (i = 0; i < prefs->language_seq->_length; i ++) {
- char *texts[2];
-
- texts[0] = NULL;
- texts[1] = _(prefs->language_seq->_buffer [i].name);
- gtk_clist_append (GTK_CLIST (prefs->language), texts);
- gtk_clist_set_row_data (GTK_CLIST (prefs->language), i, prefs->language_seq->_buffer [i].abrev);
+ if (prefs->language_seq) {
+ for (i = 0; i < prefs->language_seq->_length; i++) {
+ char *texts[2];
+
+ texts[0] = NULL;
+ texts[1] = _(prefs->language_seq->_buffer [i].name);
+ gtk_clist_append (GTK_CLIST (prefs->language), texts);
+ gtk_clist_set_row_data (GTK_CLIST (prefs->language), i, prefs->language_seq->_buffer [i].abrev);
+ }
}
gtk_clist_thaw (GTK_CLIST (prefs->language));