[gnome-photos/wip/rishi/assert-more: 6/7] create-collection-icon-job: Be more strict about what is acceptable




commit a4764cdf99e022db63ccfc63197753999a1ae251
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Mar 14 18:44:47 2021 +0100

    create-collection-icon-job: Be more strict about what is acceptable
    
    https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/179

 src/photos-create-collection-icon-job.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/photos-create-collection-icon-job.c b/src/photos-create-collection-icon-job.c
index 65fa7862..8f0e543c 100644
--- a/src/photos-create-collection-icon-job.c
+++ b/src/photos-create-collection-icon-job.c
@@ -149,6 +149,9 @@ photos_create_collection_icon_job_run (PhotosCreateCollectionIconJob *self,
 {
   g_autoptr (GTask) task = NULL;
 
+  g_return_if_fail (PHOTOS_IS_CREATE_COLLECTION_ICON_JOB (self));
+  g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
+
   task = g_task_new (self, cancellable, callback, user_data);
   g_task_set_source_tag (task, photos_create_collection_icon_job_run);
 


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