[gnome-photos] organize-collection-model: Handle collection removal
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] organize-collection-model: Handle collection removal
- Date: Tue, 2 Apr 2013 12:47:01 +0000 (UTC)
commit d8c2a28788c8422b130fe92af920b0a5fadc9b47
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Apr 2 13:43:30 2013 +0200
organize-collection-model: Handle collection removal
src/photos-organize-collection-model.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-organize-collection-model.c b/src/photos-organize-collection-model.c
index b8af158..520ac8a 100644
--- a/src/photos-organize-collection-model.c
+++ b/src/photos-organize-collection-model.c
@@ -155,6 +155,15 @@ photos_organize_collection_model_object_added (PhotosBaseManager *manager, GObje
static void
photos_organize_collection_model_object_removed (PhotosBaseManager *manager, GObject *object, gpointer
user_data)
{
+ PhotosOrganizeCollectionModel *self = PHOTOS_ORGANIZE_COLLECTION_MODEL (user_data);
+ GtkTreeIter *iter;
+
+ iter = photos_organize_collection_model_find_collection_iter (self, PHOTOS_BASE_ITEM (object));
+ if (iter == NULL)
+ return;
+
+ gtk_list_store_remove (GTK_LIST_STORE (self), iter);
+ gtk_tree_iter_free (iter);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]