From c72b6cb1e405d8fe3363f40520aa4e3f2e69a9d2 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 13 Oct 2001 17:32:04 +0000 Subject: Don't emit a gtk warning if the composer creation fails. * mail-callbacks.c (create_msg_composer): Don't emit a gtk warning if the composer creation fails. svn path=/trunk/; revision=13660 --- mail/ChangeLog | 5 +++++ mail/mail-callbacks.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 9b0e9f4b08..b274a5dfd5 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-10-13 Dan Winship + + * mail-callbacks.c (create_msg_composer): Don't emit a gtk warning + if the composer creation fails. + 2001-10-12 Dan Winship * message-list.c, message-list.h, message-list.etspec: Revert the diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index df292f480c..e50bcac040 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -664,9 +664,9 @@ create_msg_composer (const char *url) e_msg_composer_hdrs_set_from_account (E_MSG_COMPOSER_HDRS (composer->hdrs), account->name); e_msg_composer_set_send_html (composer, send_html); e_msg_composer_show_sig_file (composer); - } - - return GTK_WIDGET (composer); + return GTK_WIDGET (composer); + } else + return NULL; } void -- cgit v1.2.3