[gnome-photos/wip/rishi/assert-more: 5/6] create-collection-icon-job: Be more strict about what is acceptable
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/assert-more: 5/6] create-collection-icon-job: Be more strict about what is acceptable
- Date: Sun, 14 Mar 2021 17:48:17 +0000 (UTC)
commit 7066122bc6007916b5db4772c1156eaa643af3ed
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
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]