[gnome-photos/wip/favorites: 9/15] view-model: Clear the row-ref when an item is removed
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/favorites: 9/15] view-model: Clear the row-ref when an item is removed
- Date: Fri, 14 Dec 2012 06:29:21 +0000 (UTC)
commit cdc9b25042450acdb991bd4dacf70a4a5432ed2a
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Dec 12 18:52:38 2012 +0530
view-model: Clear the row-ref when an item is removed
src/photos-view-model.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-view-model.c b/src/photos-view-model.c
index 261aba3..472f97b 100644
--- a/src/photos-view-model.c
+++ b/src/photos-view-model.c
@@ -120,7 +120,9 @@ static void
photos_view_model_object_removed (PhotosViewModel *self, GObject *object)
{
PhotosBaseItem *item = PHOTOS_BASE_ITEM (object);
+
gtk_tree_model_foreach (GTK_TREE_MODEL (self), photos_view_model_item_removed_foreach, item);
+ g_object_set_data (object, "row-ref", NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]