aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-05-13 21:29:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-05-13 21:40:23 +0800
commit53a3d2f4e1473dd93fee8e7367bc329b8dc5ef23 (patch)
treef4cdd57586ad4bd1af4669a429af0938e8d6e845 /composer
parent89777f0726a0127daddd593c8a28384204cb7aaf (diff)
downloadgsoc2013-evolution-53a3d2f4e1473dd93fee8e7367bc329b8dc5ef23.tar.gz
gsoc2013-evolution-53a3d2f4e1473dd93fee8e7367bc329b8dc5ef23.tar.zst
gsoc2013-evolution-53a3d2f4e1473dd93fee8e7367bc329b8dc5ef23.zip
Use g_simple_async_result_set_check_cancellable().
Always call it immediately after g_simple_async_result_new().
Diffstat (limited to 'composer')
-rw-r--r--composer/e-msg-composer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index f033e9dd52..50c51b60bc 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1081,6 +1081,8 @@ composer_build_message (EMsgComposer *composer,
G_OBJECT (composer), callback,
user_data, composer_build_message);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
g_simple_async_result_set_op_res_gpointer (
simple, context, (GDestroyNotify) async_context_free);
@@ -4574,6 +4576,8 @@ e_msg_composer_get_message (EMsgComposer *composer,
G_OBJECT (composer), callback,
user_data, e_msg_composer_get_message);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
if (gtkhtml_editor_get_html_mode (GTKHTML_EDITOR (composer)))
flags |= COMPOSER_FLAG_HTML_CONTENT;
@@ -4649,6 +4653,8 @@ e_msg_composer_get_message_print (EMsgComposer *composer,
G_OBJECT (composer), callback,
user_data, e_msg_composer_get_message_print);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
flags |= COMPOSER_FLAG_HTML_CONTENT;
flags |= COMPOSER_FLAG_SAVE_OBJECT_DATA;
@@ -4698,6 +4704,8 @@ e_msg_composer_get_message_draft (EMsgComposer *composer,
G_OBJECT (composer), callback,
user_data, e_msg_composer_get_message_draft);
+ g_simple_async_result_set_check_cancellable (simple, cancellable);
+
if (gtkhtml_editor_get_html_mode (GTKHTML_EDITOR (composer)))
flags |= COMPOSER_FLAG_HTML_CONTENT;