aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@helixcode.com>2000-06-23 05:42:24 +0800
committerChris Toshok <toshok@src.gnome.org>2000-06-23 05:42:24 +0800
commitc422e1f7422eb787fa7ee6b6e43656451280c4dd (patch)
tree30aa0b707058a53994b1d12f339906852001301b
parent8e54fc772c7e30ccb943ccdb57ffb02099bd29ae (diff)
downloadgsoc2013-evolution-c422e1f7422eb787fa7ee6b6e43656451280c4dd.tar
gsoc2013-evolution-c422e1f7422eb787fa7ee6b6e43656451280c4dd.tar.gz
gsoc2013-evolution-c422e1f7422eb787fa7ee6b6e43656451280c4dd.tar.bz2
gsoc2013-evolution-c422e1f7422eb787fa7ee6b6e43656451280c4dd.tar.lz
gsoc2013-evolution-c422e1f7422eb787fa7ee6b6e43656451280c4dd.tar.xz
gsoc2013-evolution-c422e1f7422eb787fa7ee6b6e43656451280c4dd.tar.zst
gsoc2013-evolution-c422e1f7422eb787fa7ee6b6e43656451280c4dd.zip
new function, passed as arg to mail_operation_try. (fetch_mail): add
2000-06-22 Chris Toshok <toshok@helixcode.com> * 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
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-ops.c8
2 files changed, 13 insertions, 1 deletions
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 <toshok@helixcode.com>
+
+ * 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 <clahey@helixcode.com>
* 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 );
}