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




commit 205a3cf71ed780195dc8cead06fb05dfb4176d00
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Mar 14 18:41:01 2021 +0100

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

 src/photos-collection-icon-watcher.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/photos-collection-icon-watcher.c b/src/photos-collection-icon-watcher.c
index 3f1dd980..48c3cd04 100644
--- a/src/photos-collection-icon-watcher.c
+++ b/src/photos-collection-icon-watcher.c
@@ -482,6 +482,8 @@ photos_collection_icon_watcher_new (PhotosBaseItem *collection)
 void
 photos_collection_icon_watcher_refresh (PhotosCollectionIconWatcher *self)
 {
+  g_return_if_fail (PHOTOS_IS_COLLECTION_ICON_WATCHER (self));
+
   photos_collection_icon_watcher_destroy (self);
   photos_collection_icon_watcher_start (self);
 }


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