[gnome-games] revert e039ba25



commit 34ae010c787175c6b685204425bde1d561a75ff7
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Tue Jul 5 22:57:56 2011 +0200

    revert e039ba25
    
    too high dependency on vala for now

 configure.in               |    2 +-
 glchess/src/chess-pgn.vala |   11 ++++++-----
 2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/configure.in b/configure.in
index 30cde63..a1dad96 100644
--- a/configure.in
+++ b/configure.in
@@ -203,7 +203,7 @@ AC_PROG_LN_S
 AC_PROG_SED
 
 if test "$need_vala" = "yes"; then
-  AM_PROG_VALAC([0.13.0])
+  AM_PROG_VALAC([0.11.6])
 fi
 
 if test "$need_cxx" = "yes"; then
diff --git a/glchess/src/chess-pgn.vala b/glchess/src/chess-pgn.vala
index f376a6c..e15bdcf 100644
--- a/glchess/src/chess-pgn.vala
+++ b/glchess/src/chess-pgn.vala
@@ -422,12 +422,13 @@ public class PGN
         /* Must have at least one game */
         if (games == null)
             throw new PGNError.LOAD_ERROR("No games in PGN file");
-    }
+     }
 
     public PGN.from_file (File file) throws Error
     {
-        uint8[] contents;
-        file.load_contents (null, out contents);
-        this.from_string ((string) contents);
+        string contents;
+        size_t n_read;
+        file.load_contents (null, out contents, out n_read);
+        this.from_string (contents);
     }
-}
\ No newline at end of file
+}



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