[gnome-photos/wip/rishi/share-point-strict-cancellable] share-point: Be strict about what is acceptable
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/share-point-strict-cancellable] share-point: Be strict about what is acceptable
- Date: Tue, 30 Mar 2021 13:32:33 +0000 (UTC)
commit 3f149fc7bf3b4159061d7ba66416c68d2181ea93
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Mar 30 15:17:16 2021 +0200
share-point: Be strict about what is acceptable
src/photos-share-point.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/photos-share-point.c b/src/photos-share-point.c
index c2a32878..b8cd281f 100644
--- a/src/photos-share-point.c
+++ b/src/photos-share-point.c
@@ -87,6 +87,7 @@ photos_share_point_share_async (PhotosSharePoint *self,
{
g_return_if_fail (PHOTOS_IS_SHARE_POINT (self));
g_return_if_fail (PHOTOS_IS_BASE_ITEM (item));
+ g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
PHOTOS_SHARE_POINT_GET_CLASS (self)->share_async (self, item, cancellable, callback, user_data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]