aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
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));