[gimp] app: change GimpData:mtime from time_t to gint64



commit 13614f6182fa76d2e5584c3e869cc43a56d715e3
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jul 12 16:33:12 2013 +0200

    app: change GimpData:mtime from time_t to gint64

 app/core/gimpdata.c |    6 +++---
 app/core/gimpdata.h |    5 ++---
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/app/core/gimpdata.c b/app/core/gimpdata.c
index f661364..2de680a 100644
--- a/app/core/gimpdata.c
+++ b/app/core/gimpdata.c
@@ -74,7 +74,7 @@ struct _GimpDataPrivate
   guint   dirty     : 1;
   guint   internal  : 1;
   gint    freeze_count;
-  time_t  mtime;
+  gint64  mtime;
 
   /* Identifies the GimpData object across sessions. Used when there
    * is not a filename associated with the object.
@@ -981,7 +981,7 @@ gimp_data_is_deletable (GimpData *data)
 
 void
 gimp_data_set_mtime (GimpData *data,
-                     time_t    mtime)
+                     gint64    mtime)
 {
   GimpDataPrivate *private;
 
@@ -992,7 +992,7 @@ gimp_data_set_mtime (GimpData *data,
   private->mtime = mtime;
 }
 
-time_t
+gint64
 gimp_data_get_mtime (GimpData *data)
 {
   GimpDataPrivate *private;
diff --git a/app/core/gimpdata.h b/app/core/gimpdata.h
index e8c87cd..fcecc68 100644
--- a/app/core/gimpdata.h
+++ b/app/core/gimpdata.h
@@ -21,7 +21,6 @@
 #ifndef __GIMP_DATA_H__
 #define __GIMP_DATA_H__
 
-#include <time.h>      /* time_t */
 
 #include "gimpviewable.h"
 
@@ -100,8 +99,8 @@ gboolean      gimp_data_is_writable      (GimpData     *data);
 gboolean      gimp_data_is_deletable     (GimpData     *data);
 
 void          gimp_data_set_mtime        (GimpData     *data,
-                                          time_t        mtime);
-time_t        gimp_data_get_mtime        (GimpData     *data);
+                                          gint64        mtime);
+gint64        gimp_data_get_mtime        (GimpData     *data);
 
 GimpData    * gimp_data_duplicate        (GimpData     *data);
 


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