[gnome-photos/wip/rishi/share-point-strict-cancellable] share-point: Be strict about what is acceptable




commit e0e4153654917d4505c1e5cd24edea16acd1479b
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Mar 30 15:17:16 2021 +0200

    share-point: Be strict about what is acceptable
    
    https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/205

 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]