[gnome-photos/wip/uajain/master-fixes: 3/3] item-manager: Reconnect "info-updated" signal handler while unhiding item
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/uajain/master-fixes: 3/3] item-manager: Reconnect "info-updated" signal handler while unhiding item
- Date: Sun, 4 Sep 2016 12:13:14 +0000 (UTC)
commit 1ea4a80121ee6150850e881ca7f5cb992ede83dd
Author: Umang Jain <mailumangjain gmail com>
Date: Sun Sep 4 17:30:00 2016 +0530
item-manager: Reconnect "info-updated" signal handler while unhiding item
Hiding an item will call item_manager_remove_object_by id which will
disconnect the "info-updated" handler from the item. We should re-connect
it while unhiding the item.
https://bugzilla.gnome.org/show_bug.cgi?id=770823
src/photos-item-manager.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 11a0303..88d8669 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -1014,7 +1014,10 @@ photos_item_manager_unhide_item (PhotosItemManager *self, PhotosBaseItem *item)
g_assert_cmpuint (i, <, hidden_item->n_modes);
if (hidden_item->modes[i])
- photos_base_manager_add_object (self->item_mngr_chldrn[i], G_OBJECT (item));
+ {
+ photos_base_manager_add_object (self->item_mngr_chldrn[i], G_OBJECT (item));
+ g_signal_connect_object (item, "info-updated", G_CALLBACK (photos_item_manager_info_updated),
self, 0);
+ }
}
g_hash_table_remove (self->hidden_items, id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]