[gnome-photos/wip/uajain/master-fixes: 2/3] item-manager: Fix logic of marking favorites
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/uajain/master-fixes: 2/3] item-manager: Fix logic of marking favorites
- Date: Sun, 4 Sep 2016 12:13:09 +0000 (UTC)
commit 69cf56dcc7ecfd38daccabdf6e492a57a4e7ae7a
Author: Umang Jain <mailumangjain gmail com>
Date: Sat Sep 3 20:30:30 2016 +0530
item-manager: Fix logic of marking favorites
https://bugzilla.gnome.org/show_bug.cgi?id=770823
src/photos-item-manager.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index d19c5b6..11a0303 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -357,6 +357,8 @@ photos_item_manager_info_updated (PhotosBaseItem *item, gpointer user_data)
{
if (is_favorite)
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_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]