[gnome-photos] item-manager: Reconnect to BaseItem::info-updated when unhiding item



commit f0970c6b199ebfdc8ee41207aa893e0928a36906
Author: Umang Jain <mailumangjain gmail com>
Date:   Sun Sep 4 17:30:00 2016 +0530

    item-manager: Reconnect to BaseItem::info-updated when unhiding item
    
    Hiding an item will disconnect the BaseItem::info-updated handler, so
    we should reconnect when unhiding. Otherwise we will miss subsequent
    updates to the BaseItem.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770823

 src/photos-item-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-item-manager.c b/src/photos-item-manager.c
index 956bd0f..44b3f4f 100644
--- a/src/photos-item-manager.c
+++ b/src/photos-item-manager.c
@@ -1022,6 +1022,7 @@ photos_item_manager_unhide_item (PhotosItemManager *self, PhotosBaseItem *item)
     }
 
   g_hash_table_remove (self->hidden_items, id);
+  g_signal_connect_object (item, "info-updated", G_CALLBACK (photos_item_manager_info_updated), self, 0);
   g_signal_emit_by_name (self, "object-added", G_OBJECT (item));
 }
 


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