[gnome-photos/wip/rishi/edit-mode: 1/27] base-item, camera-cache: Drop redundant g_task_set_check_cancellable's



commit 439c32391dbe1194f8134af9082e6d69f17a5b52
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Nov 5 12:53:40 2015 +0100

    base-item, camera-cache: Drop redundant g_task_set_check_cancellable's
    
    GTask's check-cancellable flag is set to TRUE by default.

 src/photos-base-item.c    |    3 ---
 src/photos-camera-cache.c |    1 -
 2 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index bab9db9..7c573a5 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -381,7 +381,6 @@ photos_base_item_create_thumbnail_async (PhotosBaseItem *self,
   GTask *task;
 
   task = g_task_new (self, cancellable, callback, user_data);
-  g_task_set_check_cancellable (task, TRUE);
   g_task_set_source_tag (task, photos_base_item_create_thumbnail_async);
 
   g_thread_pool_push (create_thumbnail_pool, g_object_ref (task), NULL);
@@ -1169,7 +1168,6 @@ photos_base_item_download_async (PhotosBaseItem *self,
   GTask *task;
 
   task = g_task_new (self, cancellable, callback, user_data);
-  g_task_set_check_cancellable (task, TRUE);
   g_task_set_source_tag (task, photos_base_item_download_async);
 
   g_task_run_in_thread (task, photos_base_item_download_in_thread_func);
@@ -1405,7 +1403,6 @@ photos_base_item_load_async (PhotosBaseItem *self,
   g_return_if_fail (PHOTOS_IS_BASE_ITEM (self));
 
   task = g_task_new (self, cancellable, callback, user_data);
-  g_task_set_check_cancellable (task, TRUE);
   g_task_set_source_tag (task, photos_base_item_load_async);
 
   g_task_run_in_thread (task, photos_base_item_load_in_thread_func);
diff --git a/src/photos-camera-cache.c b/src/photos-camera-cache.c
index 1144bfe..6f7e8b9 100644
--- a/src/photos-camera-cache.c
+++ b/src/photos-camera-cache.c
@@ -196,7 +196,6 @@ photos_camera_cache_get_camera_async (PhotosCameraCache *self,
   const gchar *camera;
 
   task = g_task_new (self, cancellable, callback, user_data);
-  g_task_set_check_cancellable (task, TRUE);
   g_task_set_source_tag (task, photos_camera_cache_get_camera_async);
   g_task_set_task_data (task, GUINT_TO_POINTER (id), NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]