aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-09-19 23:35:40 +0800
committerDan Winship <danw@src.gnome.org>2000-09-19 23:35:40 +0800
commit053af645da6e5f74474d13c19ce73d236d9b76a9 (patch)
tree1ebbe95f9fcefc904dddde9faa0aea3a03391a82 /mail/mail-ops.c
parentc09bcfdc4332454675f3ee5bb070f5cd702a065e (diff)
downloadgsoc2013-evolution-053af645da6e5f74474d13c19ce73d236d9b76a9.tar.gz
gsoc2013-evolution-053af645da6e5f74474d13c19ce73d236d9b76a9.tar.zst
gsoc2013-evolution-053af645da6e5f74474d13c19ce73d236d9b76a9.zip
Deal with NULL composer.
* mail-callbacks.c (create_msg_composer, compose_msg, send_to_url, mail_reply, forward_msg): * mail-format.c (mail_generate_reply): * mail-ops.c (cleanup_edit_messages): * mail-view.c (view_forward_msg): Deal with NULL composer. svn path=/trunk/; revision=5502
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index e147709219..0109859349 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -2333,17 +2333,18 @@ cleanup_edit_messages (gpointer in_data, gpointer op_data,
int i;
for (i = 0; i < data->messages->len; i++) {
- GtkWidget *composer;
+ EMsgComposer *composer;
composer = e_msg_composer_new_with_message (data->messages->pdata[i]);
+ camel_object_unref (CAMEL_OBJECT (data->messages->pdata[i]));
+ if (!composer)
+ continue;
if (input->signal)
gtk_signal_connect (GTK_OBJECT (composer), "send",
input->signal, NULL);
- gtk_widget_show (composer);
-
- camel_object_unref (CAMEL_OBJECT (data->messages->pdata[i]));
+ gtk_widget_show (GTK_WIDGET (composer));
}
g_ptr_array_free (input->uids, TRUE);