From 8b245838de22f470e867b28631240a018a0bc36b Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 24 Apr 2013 18:26:43 -0400 Subject: Add e_activity_cancel(). Convenience function cancels the activity's GCancellable. --- shell/e-shell-backend.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'shell') 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)); } /** -- cgit