[gnome-photos/wip/uajain/master-fixes] item-manager: Fix the handling of favorites items
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/uajain/master-fixes] item-manager: Fix the handling of favorites items
- Date: Sat, 3 Sep 2016 11:41:59 +0000 (UTC)
commit 6239c1d83b0d8cd98c1355d393bccfc6731ccab1
Author: Umang Jain <mailumangjain gmail com>
Date: Sat Sep 3 17:10:46 2016 +0530
item-manager: Fix the handling of favorites items
This partially reverts the commit 8d1d00232a9e62deb93ae4d4f498d0b51b3dad2e
src/photos-item-manager.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 09e089d..4c2397a 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -356,7 +356,14 @@ photos_item_manager_info_updated (PhotosBaseItem *item, gpointer user_data)
else
{
if (is_favorite)
- photos_base_manager_add_object (self->item_mngr_chldrn[PHOTOS_WINDOW_MODE_FAVORITES], G_OBJECT
(item));
+ {
+ photos_base_manager_add_object (self->item_mngr_chldrn[PHOTOS_WINDOW_MODE_FAVORITES], G_OBJECT
(item));
+ }
+ else
+ {
+ photos_base_manager_remove_object (self->item_mngr_chldrn[PHOTOS_WINDOW_MODE_FAVORITES], G_OBJECT
(item));
+ photos_base_manager_remove_object (self->item_mngr_chldrn[PHOTOS_WINDOW_MODE_OVERVIEW], G_OBJECT
(item));
+ }
photos_base_manager_add_object (self->item_mngr_chldrn[PHOTOS_WINDOW_MODE_OVERVIEW], G_OBJECT (item));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]