From c422e1f7422eb787fa7ee6b6e43656451280c4dd Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 22 Jun 2000 21:42:24 +0000 Subject: new function, passed as arg to mail_operation_try. (fetch_mail): add 2000-06-22 Chris Toshok * mail-ops.c (fetch_mail_cleanup): new function, passed as arg to mail_operation_try. (fetch_mail): add cleanup func arg. svn path=/trunk/; revision=3698 --- mail/ChangeLog | 6 ++++++ mail/mail-ops.c | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index e8c0461cb0..08f7ed9499 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2000-06-22 Chris Toshok + + * mail-ops.c (fetch_mail_cleanup): new function, passed as arg to + mail_operation_try. + (fetch_mail): add cleanup func arg. + 2000-06-22 Christopher James Lahey * message-list.c: Changed ml_value_at to return "" instead of NULL diff --git a/mail/mail-ops.c b/mail/mail-ops.c index a6de2ae1cd..a9c183b3a1 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -266,6 +266,12 @@ real_fetch_mail( gpointer user_data ) camel_exception_free (ex); } +static void +fetch_mail_cleanup (gpointer user_data) +{ + /* nothing */ +} + /* FIXME: This is BROKEN! It fetches mail into whatever folder you're * currently viewing. */ @@ -299,7 +305,7 @@ fetch_mail (GtkWidget *button, gpointer user_data) info = g_new( rfm_t, 1 ); info->fb = FOLDER_BROWSER( user_data ); info->source_url = url; - mail_operation_try( _("Fetching mail"), real_fetch_mail, info ); + mail_operation_try( _("Fetching mail"), real_fetch_mail, fetch_mail_cleanup, info ); } -- cgit v1.2.3