[gnome-photos] item-manager: Remove items from FAVORITES when unfavorited



commit 893ae2bf20784dd745e599f1e08ebfbf0120f97c
Author: Umang Jain <mailumangjain gmail com>
Date:   Mon Sep 5 23:01:56 2016 +0200

    item-manager: Remove items from FAVORITES when unfavorited
    
    Fallout from 5497a7c67c13509da605bd51de1098101c7a40b7
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770823

 src/photos-item-manager.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index fd094de..956bd0f 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -370,6 +370,9 @@ photos_item_manager_info_updated (PhotosBaseItem *item, gpointer user_data)
     {
       if (self->active_collection == NULL)
         photos_base_manager_remove_object (self->item_mngr_chldrn[PHOTOS_WINDOW_MODE_COLLECTIONS], G_OBJECT 
(item));
+
+      if (!is_favorite)
+        photos_base_manager_remove_object (self->item_mngr_chldrn[PHOTOS_WINDOW_MODE_FAVORITES], G_OBJECT 
(item));
     }
 }
 


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