[gnome-klotski] HistoryFileImporter.parse_date now returns an int64



commit 8784a727c516e5e245f34e86cf01b3f3e5e1d525
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Feb 14 15:59:42 2016 -0600

    HistoryFileImporter.parse_date now returns an int64

 src/klotski-window.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/klotski-window.vala b/src/klotski-window.vala
index f559b4c..fb18e02 100644
--- a/src/klotski-window.vala
+++ b/src/klotski-window.vala
@@ -482,7 +482,7 @@ public class KlotskiWindow : ApplicationWindow
             return;
 
         var date = Games.Scores.HistoryFileImporter.parse_date (tokens[0]);
-        if (date == null)
+        if (date == 0)
             return;
 
         var level = int.parse (tokens[1]);
@@ -495,7 +495,7 @@ public class KlotskiWindow : ApplicationWindow
         if (moves <= 0)
             return;
 
-        score = new Games.Scores.Score (moves, date.to_unix ());
+        score = new Games.Scores.Score (moves, date);
         category = score_categories[level];
     }
 


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