[gnome-photos] base-item: Implement is_collection and is_favorite
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-item: Implement is_collection and is_favorite
- Date: Thu, 2 Aug 2012 09:51:04 +0000 (UTC)
commit 081ec2d004da0c690ac8abaa6632ca69f487dd96
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Aug 1 10:21:40 2012 +0200
base-item: Implement is_collection and is_favorite
src/photos-base-item.c | 14 ++++++++++++++
src/photos-base-item.h | 4 ++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index d47d4c3..8e5664e 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -739,6 +739,20 @@ photos_base_item_get_where (PhotosBaseItem *self)
}
+gboolean
+photos_base_item_is_collection (PhotosBaseItem *self)
+{
+ return self->priv->collection;
+}
+
+
+gboolean
+photos_base_item_is_favorite (PhotosBaseItem *self)
+{
+ return self->priv->favorite;
+}
+
+
void
photos_base_item_load_async (PhotosBaseItem *self,
GCancellable *cancellable,
diff --git a/src/photos-base-item.h b/src/photos-base-item.h
index 68f59e9..a873f19 100644
--- a/src/photos-base-item.h
+++ b/src/photos-base-item.h
@@ -88,6 +88,10 @@ const gchar *photos_base_item_get_uri (PhotosBaseItem *self);
gchar *photos_base_item_get_where (PhotosBaseItem *self);
+gboolean photos_base_item_is_collection (PhotosBaseItem *self);
+
+gboolean photos_base_item_is_favorite (PhotosBaseItem *self);
+
void photos_base_item_load_async (PhotosBaseItem *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]