diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-10-02 02:54:10 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-10-02 02:54:10 +0800 |
commit | 5ee0670885b9037bb00b1da4d3437bb8a5852a5c (patch) | |
tree | 3a43cf9013da13ad61ae1c5963ad0e8bb7a67638 /mail/mail-composer-prefs.c | |
parent | f32c0383937c70a877615aa1877093a75d89c3a1 (diff) | |
download | gsoc2013-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/mail-composer-prefs.c')
-rw-r--r-- | mail/mail-composer-prefs.c | 16 |
1 files changed, 9 insertions, 7 deletions
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)); |