[gnome-photos/wip/rishi/item-manager: 6/8] item-manager: adjust add object vfunc
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/item-manager: 6/8] item-manager: adjust add object vfunc
- Date: Sun, 14 Aug 2016 23:23:09 +0000 (UTC)
commit 28c7eacca60e9c0113670344802dd2c13f71155a
Author: Umang Jain <mailumangjain gmail com>
Date: Sun Jul 31 00:12:25 2016 +0530
item-manager: adjust add object vfunc
src/photos-item-manager.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 4da905a..04853b1 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -95,6 +95,7 @@ static void
photos_item_manager_add_object (PhotosBaseManager *mngr, GObject *object)
{
PhotosItemManager *self = PHOTOS_ITEM_MANAGER (mngr);
+ PhotosBaseManager *item_mngr_chld;
PhotosBaseItem *item;
const gchar *id;
gpointer *old_collection;
@@ -102,6 +103,7 @@ photos_item_manager_add_object (PhotosBaseManager *mngr, GObject *object)
g_return_if_fail (PHOTOS_IS_BASE_ITEM (object));
item = PHOTOS_BASE_ITEM (object);
+ item_mngr_chld = self->item_mngr_chldrn[self->mode]; //self->mode is currently active?
if (!photos_base_item_is_collection (item))
goto end;
@@ -117,7 +119,7 @@ photos_item_manager_add_object (PhotosBaseManager *mngr, GObject *object)
g_hash_table_insert (self->collections, g_strdup (id), g_object_ref (item));
end:
- PHOTOS_BASE_MANAGER_CLASS (photos_item_manager_parent_class)->add_object (mngr, object);
+ PHOTOS_BASE_MANAGER_CLASS (photos_item_manager_parent_class)->add_object (item_mngr_chld, object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]