aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-04-25 06:26:43 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-04-26 00:04:21 +0800
commit0aa6d685c397a8fb93c27e4237de6f55cd36d747 (patch)
treeca2aa3cd853ac3c8568e61ea818ef37438c9336f /shell
parent2ba45b09fd68ad4a25f682dd80fd828bd53fdbc8 (diff)
downloadgsoc2013-evolution-0aa6d685c397a8fb93c27e4237de6f55cd36d747.tar
gsoc2013-evolution-0aa6d685c397a8fb93c27e4237de6f55cd36d747.tar.gz
gsoc2013-evolution-0aa6d685c397a8fb93c27e4237de6f55cd36d747.tar.bz2
gsoc2013-evolution-0aa6d685c397a8fb93c27e4237de6f55cd36d747.tar.lz
gsoc2013-evolution-0aa6d685c397a8fb93c27e4237de6f55cd36d747.tar.xz
gsoc2013-evolution-0aa6d685c397a8fb93c27e4237de6f55cd36d747.tar.zst
gsoc2013-evolution-0aa6d685c397a8fb93c27e4237de6f55cd36d747.zip
Add e_activity_cancel().
Convenience function cancels the activity's GCancellable. (cherry picked from commit 8b245838de22f470e867b28631240a018a0bc36b)
Diffstat (limited to 'shell')
-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));
}
/**