[gnome-games] glchess: adjust to Vala 0.15



commit 699b88fb884aec17c16b13cf4cf5dc8ca3cc0475
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri Feb 3 11:00:37 2012 -0500

    glchess: adjust to Vala 0.15
    
    This commit means that gnome-games will now build with Vala 0.15, which
    is the version of Vala that all the other GNOME modules are targetting
    (and will have a stable release alongside GNOME 3.4).
    
    It also means that older versions of Vala will no longer work.

 glchess/src/chess-pgn.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glchess/src/chess-pgn.vala b/glchess/src/chess-pgn.vala
index f376a6c..ebce1b9 100644
--- a/glchess/src/chess-pgn.vala
+++ b/glchess/src/chess-pgn.vala
@@ -160,7 +160,7 @@ public class PGNGame
         data.append (result);
         data.append ("\n");
 
-        file.replace_contents (data.str, data.len, null, false, FileCreateFlags.NONE, null);
+        file.replace_contents (data.str.data, null, false, FileCreateFlags.NONE, null);
     }
 }
 
@@ -427,7 +427,7 @@ public class PGN
     public PGN.from_file (File file) throws Error
     {
         uint8[] contents;
-        file.load_contents (null, out contents);
+        file.load_contents (null, out contents, null);
         this.from_string ((string) contents);
     }
-}
\ No newline at end of file
+}



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