aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-11-05 13:21:10 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-11-07 09:10:57 +0800
commit41f0d7117eb958bd4a153c27e3cd0a58e14f4d75 (patch)
tree472b21d27779f0c4cfc55869532b35ae85ef7f8c /mail/message-list.c
parent8382a9cbfb2c58cee99c34a93d027a50a1bf695c (diff)
downloadgsoc2013-evolution-41f0d7117eb958bd4a153c27e3cd0a58e14f4d75.tar
gsoc2013-evolution-41f0d7117eb958bd4a153c27e3cd0a58e14f4d75.tar.gz
gsoc2013-evolution-41f0d7117eb958bd4a153c27e3cd0a58e14f4d75.tar.bz2
gsoc2013-evolution-41f0d7117eb958bd4a153c27e3cd0a58e14f4d75.tar.lz
gsoc2013-evolution-41f0d7117eb958bd4a153c27e3cd0a58e14f4d75.tar.xz
gsoc2013-evolution-41f0d7117eb958bd4a153c27e3cd0a58e14f4d75.tar.zst
gsoc2013-evolution-41f0d7117eb958bd4a153c27e3cd0a58e14f4d75.zip
Adapt to CamelOperation API changes.
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 1e903a3f48..e01f42fca2 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -4999,20 +4999,16 @@ mail_regen_cancel (MessageList *ml)
{
/* cancel any outstanding regeneration requests, not we don't clear, they clear themselves */
if (ml->regen) {
- GList *l;
+ GList *link;
g_mutex_lock (ml->regen_lock);
- l = ml->regen;
- while (l) {
- MailMsg *mm = l->data;
+ for (link = ml->regen; link != NULL; link = link->next) {
+ MailMsg *mm = link->data;
GCancellable *cancellable;
cancellable = e_activity_get_cancellable (mm->activity);
- if (CAMEL_IS_OPERATION (cancellable))
- camel_operation_cancel (
- CAMEL_OPERATION (cancellable));
- l = l->next;
+ g_cancellable_cancel (cancellable);
}
g_mutex_unlock (ml->regen_lock);