aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-backend.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-04-25 06:26:43 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-04-25 23:42:04 +0800
commit8b245838de22f470e867b28631240a018a0bc36b (patch)
tree23576c4320b45c8110640227b4a3c3545377cfeb /shell/e-shell-backend.c
parentd0a0a397987684334c5fd41b364218782bc9bcfd (diff)
downloadgsoc2013-evolution-8b245838de22f470e867b28631240a018a0bc36b.tar.gz
gsoc2013-evolution-8b245838de22f470e867b28631240a018a0bc36b.tar.zst
gsoc2013-evolution-8b245838de22f470e867b28631240a018a0bc36b.zip
Add e_activity_cancel().
Convenience function cancels the activity's GCancellable.
Diffstat (limited to 'shell/e-shell-backend.c')
-rw-r--r--shell/e-shell-backend.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/shell/e-shell-backend.c b/shell/e-shell-backend.c
index 0749aac4e6..0261d8a3e2 100644
--- a/shell/e-shell-backend.c
+++ b/shell/e-shell-backend.c
@@ -619,14 +619,8 @@ e_shell_backend_cancel_all (EShellBackend *shell_backend)
list = g_queue_peek_head_link (shell_backend->priv->activities);
- for (iter = list; iter != NULL; iter = g_list_next (iter)) {
- EActivity *activity;
- GCancellable *cancellable;
-
- activity = E_ACTIVITY (iter->data);
- cancellable = e_activity_get_cancellable (activity);
- g_cancellable_cancel (cancellable);
- }
+ for (iter = list; iter != NULL; iter = g_list_next (iter))
+ e_activity_cancel (E_ACTIVITY (iter->data));
}
/**