[gnome-photos] item-manager: Allow unsetting the active object by passing NULL



commit c6fac6aeac848d86f75279c07b47c89fdb0befc1
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Jul 28 16:54:32 2012 +0200

    item-manager: Allow unsetting the active object by passing NULL

 src/photos-item-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index c9876dd..4316a32 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -42,7 +42,7 @@ photos_item_manager_set_active_object (PhotosBaseManager *manager, GObject *obje
 {
   gboolean ret_val;
 
-  g_return_val_if_fail (PHOTOS_IS_BASE_ITEM (object), FALSE);
+  g_return_val_if_fail (PHOTOS_IS_BASE_ITEM (object) || object == NULL, FALSE);
 
   ret_val = PHOTOS_BASE_MANAGER_CLASS (photos_item_manager_parent_class)->set_active_object (manager, object);
 



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