aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine/e-mail-folder-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libemail-engine/e-mail-folder-utils.c')
-rw-r--r--libemail-engine/e-mail-folder-utils.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libemail-engine/e-mail-folder-utils.c b/libemail-engine/e-mail-folder-utils.c
index ddf2bcf54d..6d2f3f499f 100644
--- a/libemail-engine/e-mail-folder-utils.c
+++ b/libemail-engine/e-mail-folder-utils.c
@@ -147,6 +147,8 @@ e_mail_folder_append_message (CamelFolder *folder,
G_OBJECT (folder), callback, user_data,
e_mail_folder_append_message);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
g_simple_async_result_set_op_res_gpointer (
simple, context, (GDestroyNotify) async_context_free);
@@ -301,6 +303,8 @@ e_mail_folder_build_attachment (CamelFolder *folder,
G_OBJECT (folder), callback, user_data,
e_mail_folder_build_attachment);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
g_simple_async_result_set_op_res_gpointer (
simple, context, (GDestroyNotify) async_context_free);
@@ -558,6 +562,8 @@ e_mail_folder_find_duplicate_messages (CamelFolder *folder,
G_OBJECT (folder), callback, user_data,
e_mail_folder_find_duplicate_messages);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
g_simple_async_result_set_op_res_gpointer (
simple, context, (GDestroyNotify) async_context_free);
@@ -686,6 +692,8 @@ e_mail_folder_get_multiple_messages (CamelFolder *folder,
G_OBJECT (folder), callback, user_data,
e_mail_folder_get_multiple_messages);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
g_simple_async_result_set_op_res_gpointer (
simple, context, (GDestroyNotify) async_context_free);
@@ -916,6 +924,8 @@ e_mail_folder_remove (CamelFolder *folder,
G_OBJECT (folder), callback,
user_data, e_mail_folder_remove);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
g_simple_async_result_run_in_thread (
simple, mail_folder_remove_thread,
io_priority, cancellable);
@@ -1127,6 +1137,8 @@ e_mail_folder_remove_attachments (CamelFolder *folder,
G_OBJECT (folder), callback, user_data,
e_mail_folder_remove_attachments);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
g_simple_async_result_set_op_res_gpointer (
simple, context, (GDestroyNotify) async_context_free);
@@ -1377,6 +1389,8 @@ e_mail_folder_save_messages (CamelFolder *folder,
G_OBJECT (folder), callback, user_data,
e_mail_folder_save_messages);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
g_simple_async_result_set_op_res_gpointer (
simple, context, (GDestroyNotify) async_context_free);