From 053af645da6e5f74474d13c19ce73d236d9b76a9 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 19 Sep 2000 15:35:40 +0000 Subject: 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 --- mail/mail-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail/mail-view.c') diff --git a/mail/mail-view.c b/mail/mail-view.c index bbdfa87545..45cd4090fa 100644 --- a/mail/mail-view.c +++ b/mail/mail-view.c @@ -102,10 +102,13 @@ view_forward_msg (GtkWidget *widget, gpointer user_data) GPtrArray *uids; EMsgComposer *composer; + composer = e_msg_composer_new (); + if (!composer) + return; + uids = g_ptr_array_new(); g_ptr_array_add (uids, g_strdup (data->uid)); - composer = E_MSG_COMPOSER (e_msg_composer_new ()); gtk_signal_connect (GTK_OBJECT (composer), "send", GTK_SIGNAL_FUNC (composer_send_cb), NULL); -- cgit