[frogr] Added datetime private attribute to FrogrPicture
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Added datetime private attribute to FrogrPicture
- Date: Sun, 24 Apr 2011 06:39:59 +0000 (UTC)
commit 27c37e51ff0c4dec775adfb87be421b68c0e55bb
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Sat Apr 23 16:04:15 2011 +0200
Added datetime private attribute to FrogrPicture
src/frogr-picture.c | 25 +++++++++++++++++++++++++
src/frogr-picture.h | 3 +++
2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/src/frogr-picture.c b/src/frogr-picture.c
index caf5ec0..d2fad60 100644
--- a/src/frogr-picture.c
+++ b/src/frogr-picture.c
@@ -43,6 +43,7 @@ struct _FrogrPicturePrivate
GSList *tags_list;
gulong filesize; /* In KB */
+ gulong datetime; /* In seconds */
GSList *sets;
GSList *groups;
@@ -459,6 +460,7 @@ frogr_picture_init (FrogrPicture *self)
priv->tags_string = NULL;
priv->filesize = 0;
+ priv->datetime = 0;
priv->tags_list = NULL;
priv->sets = NULL;
@@ -841,6 +843,29 @@ void frogr_picture_set_filesize (FrogrPicture *self, gulong filesize)
priv->filesize = filesize;
}
+glong
+frogr_picture_get_datetime (FrogrPicture *self)
+{
+ g_return_val_if_fail(FROGR_IS_PICTURE(self), 0);
+
+ FrogrPicturePrivate *priv =
+ FROGR_PICTURE_GET_PRIVATE (self);
+
+ return priv->datetime;
+}
+
+void
+frogr_picture_set_datetime (FrogrPicture *self, glong datetime)
+{
+ g_return_if_fail(FROGR_IS_PICTURE(self));
+
+ FrogrPicturePrivate *priv =
+ FROGR_PICTURE_GET_PRIVATE (self);
+
+ priv->datetime = datetime;
+}
+
+
GSList *
frogr_picture_get_sets (FrogrPicture *self)
{
diff --git a/src/frogr-picture.h b/src/frogr-picture.h
index d6a712b..f62b87c 100644
--- a/src/frogr-picture.h
+++ b/src/frogr-picture.h
@@ -116,6 +116,9 @@ void frogr_picture_set_pixbuf (FrogrPicture *self,
gulong frogr_picture_get_filesize (FrogrPicture *self);
void frogr_picture_set_filesize (FrogrPicture *self, gulong filesize);
+glong frogr_picture_get_datetime (FrogrPicture *self);
+void frogr_picture_set_datetime (FrogrPicture *self, glong datetime);
+
GSList *frogr_picture_get_sets (FrogrPicture *self);
void frogr_picture_set_sets (FrogrPicture *self, GSList *sets);
void frogr_picture_add_set (FrogrPicture *self, FrogrPhotoSet *set);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]