[Xfce4-commits] <postler:master> Use int64 everywhere for timestamps

Christian Dywan noreply at xfce.org
Sat Jan 29 00:46:01 CET 2011


Updating branch refs/heads/master
         to 3e99d11c46008b99026088dbe3e57f3dc74f9dfb (commit)
       from 3ebd1ecee8984a2370b29d607364eb4bc0eb1f2c (commit)

commit 3e99d11c46008b99026088dbe3e57f3dc74f9dfb
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Jan 29 00:44:47 2011 +0100

    Use int64 everywhere for timestamps

 postler/postler-content.vala  |    2 +-
 postler/postler-messages.vala |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index d375f2f..860620e 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -417,7 +417,7 @@ public class Postler.Content : WebKit.WebView {
         return the_time.format (_("%B %e, %Y") + (" %X"));
     }
 
-    internal static string format_timestamp (time_t timestamp, int offset=0) {
+    internal static string format_timestamp (int64 timestamp, int offset=0) {
         var the_time = new DateTime.from_unix_local (timestamp).add_minutes (offset);
         return format_date (the_time);
     }
diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index 8a6e796..dc863b8 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -118,7 +118,7 @@ public class Postler.Messages : Gtk.TreeView {
         Gtk.TreeModel model, Gtk.TreeIter iter) {
         string charset, subject;
         int weight = Pango.Weight.NORMAL;
-        time_t timestamp;
+        int64 timestamp;
         var renderer = cell as Gtk.CellRendererText;
 
         model.get (iter, Columns.SUBJECT, out subject,
@@ -181,7 +181,7 @@ public class Postler.Messages : Gtk.TreeView {
         if (rich_rows)
             renderer.text = "";
         else {
-            time_t timestamp;
+            int64 timestamp;
             model.get (iter, Columns.TIMESTAMP, out timestamp);
             renderer.text = Postler.Content.format_timestamp (timestamp);
         }
@@ -226,7 +226,7 @@ public class Postler.Messages : Gtk.TreeView {
         this.accounts = accounts;
         store = new Gtk.TreeStore (9, typeof (bool), typeof (string),
             typeof (string), typeof (string), typeof (int), typeof (string),
-            typeof (int64), typeof (string), typeof (ulong));
+            typeof (int64), typeof (string), typeof (int64));
         sort = new Gtk.TreeModelSort.with_model (store);
         set_model (sort);
         set_search_equal_func (search_inline);



More information about the Xfce4-commits mailing list