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/mail-ops.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mail/mail-ops.c') 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