diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-05-13 21:29:38 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-05-13 21:40:23 +0800 |
commit | 53a3d2f4e1473dd93fee8e7367bc329b8dc5ef23 (patch) | |
tree | f4cdd57586ad4bd1af4669a429af0938e8d6e845 /e-util/e-file-utils.c | |
parent | 89777f0726a0127daddd593c8a28384204cb7aaf (diff) | |
download | gsoc2013-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 'e-util/e-file-utils.c')
-rw-r--r-- | e-util/e-file-utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-file-utils.c b/e-util/e-file-utils.c index ebb65f460e..90b2e77205 100644 --- a/e-util/e-file-utils.c +++ b/e-util/e-file-utils.c @@ -172,6 +172,8 @@ e_file_replace_contents_async (GFile *file, G_OBJECT (file), callback, user_data, e_file_replace_contents_async); + g_simple_async_result_set_check_cancellable (simple, cancellable); + g_simple_async_result_set_op_res_gpointer ( simple, context, (GDestroyNotify) async_context_free); |