[gnome-photos/wip/foo: 10/13] organize-collection-model: Use PhotosFetchCollectionStateJob
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/foo: 10/13] organize-collection-model: Use PhotosFetchCollectionStateJob
- Date: Sat, 30 Mar 2013 15:53:57 +0000 (UTC)
commit f4f2934778ce33d37bb66009451b9e063f558b94
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Mar 30 16:42:00 2013 +0100
organize-collection-model: Use PhotosFetchCollectionStateJob
src/photos-organize-collection-model.c | 15 +++++++++++++++
src/photos-organize-collection-model.h | 4 +++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-organize-collection-model.c b/src/photos-organize-collection-model.c
index 848adaa..e1078d0 100644
--- a/src/photos-organize-collection-model.c
+++ b/src/photos-organize-collection-model.c
@@ -42,8 +42,16 @@ G_DEFINE_TYPE (PhotosOrganizeCollectionModel, photos_organize_collection_model,
static void
+photos_organize_collection_model_refresh_state (PhotosOrganizeCollectionModel *self)
+{
+}
+
+
+static void
photos_organize_collection_model_object_added (PhotosBaseManager *manager, GObject *object, gpointer
user_data)
{
+ PhotosOrganizeCollectionModel *self = PHOTOS_ORGANIZE_COLLECTION_MODEL (user_data);
+ photos_organize_collection_model_refresh_state (self);
}
@@ -181,6 +189,13 @@ photos_organize_collection_model_get_placeholder (PhotosOrganizeCollectionModel
void
+photos_organize_collection_model_refresh_collection_state (PhotosOrganizeCollectionModel *self)
+{
+ photos_organize_collection_model_refresh_state (self);
+}
+
+
+void
photos_organize_collection_model_remove_placeholder (PhotosOrganizeCollectionModel *self)
{
PhotosOrganizeCollectionModelPrivate *priv = self->priv;
diff --git a/src/photos-organize-collection-model.h b/src/photos-organize-collection-model.h
index 19cae93..e021c54 100644
--- a/src/photos-organize-collection-model.h
+++ b/src/photos-organize-collection-model.h
@@ -1,6 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2013 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -92,6 +92,8 @@ GtkTreePath *photos_organize_collection_model_add_placeholder (Photo
GtkTreePath *photos_organize_collection_model_get_placeholder (PhotosOrganizeCollectionModel
*self,
gboolean
forget);
+void photos_organize_collection_model_refresh_collection_state (PhotosOrganizeCollectionModel
*self);
+
void photos_organize_collection_model_remove_placeholder (PhotosOrganizeCollectionModel
*self);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]