[gnome-photos] base-item: Use gint64 for mtime, not glong



commit c4d4678460f0a8e8424c7566d8718a31e861d1d9
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Jul 15 23:14:09 2012 +0200

    base-item: Use gint64 for mtime, not glong

 src/photos-base-item.c  |    6 +++---
 src/photos-base-item.h  |    2 +-
 src/photos-item-model.c |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 5a290bf..8b99252 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -49,7 +49,7 @@ struct _PhotosBaseItemPrivate
   gchar *resource_urn;
   gchar *type_description;
   gchar *uri;
-  glong mtime;
+  gint64 mtime;
 };
 
 enum
@@ -426,7 +426,7 @@ photos_base_item_populate_from_cursor (PhotosBaseItem *self, TrackerSparqlCursor
 
   mtime = tracker_sparql_cursor_get_string (cursor, PHOTOS_QUERY_COLUMNS_MTIME, NULL);
   g_time_val_from_iso8601 (mtime, &timeval);
-  priv->mtime = timeval.tv_sec;
+  priv->mtime = (gint64) timeval.tv_sec;
 
   priv->mime_type = g_strdup (tracker_sparql_cursor_get_string (cursor, PHOTOS_QUERY_COLUMNS_MIME_TYPE, NULL));
   priv->rdf_type = g_strdup (tracker_sparql_cursor_get_string (cursor, PHOTOS_QUERY_COLUMNS_RDF_TYPE, NULL));
@@ -639,7 +639,7 @@ photos_base_item_get_id (PhotosBaseItem *self)
 }
 
 
-glong
+gint64
 photos_base_item_get_mtime (PhotosBaseItem *self)
 {
   return self->priv->mtime;
diff --git a/src/photos-base-item.h b/src/photos-base-item.h
index f2fd3ce..b081831 100644
--- a/src/photos-base-item.h
+++ b/src/photos-base-item.h
@@ -76,7 +76,7 @@ GdkPixbuf          *photos_base_item_get_icon           (PhotosBaseItem *self);
 
 const gchar        *photos_base_item_get_id             (PhotosBaseItem *self);
 
-glong               photos_base_item_get_mtime          (PhotosBaseItem *self);
+gint64              photos_base_item_get_mtime          (PhotosBaseItem *self);
 
 const gchar        *photos_base_item_get_name           (PhotosBaseItem *self);
 
diff --git a/src/photos-item-model.c b/src/photos-item-model.c
index be84dd3..c9505b9 100644
--- a/src/photos-item-model.c
+++ b/src/photos-item-model.c
@@ -94,7 +94,7 @@ photos_item_model_init (PhotosItemModel *self)
                      G_TYPE_STRING,    /* NAME */
                      G_TYPE_STRING,    /* AUTHOR */
                      GDK_TYPE_PIXBUF,  /* ICON */
-                     G_TYPE_LONG,      /* MTIME */
+                     G_TYPE_INT64,     /* MTIME */
                      G_TYPE_BOOLEAN};  /* STATE */
 
   gtk_list_store_set_column_types (GTK_LIST_STORE (self), sizeof (columns) / sizeof (columns[0]), columns);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]