[gnome-games] Work with Vala 0.14
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Work with Vala 0.14
- Date: Sat, 9 Jul 2011 14:07:12 +0000 (UTC)
commit 6d613aabc34a2c46ff223e13665583e4d326c305
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Jul 1 10:58:45 2011 +0000
Work with Vala 0.14
configure.in | 2 +-
glchess/src/chess-pgn.vala | 11 +++++------
2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/configure.in b/configure.in
index 3270ab1..c707cfa 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.11.6])
+ AM_PROG_VALAC([0.13.0])
fi
if test "$need_cxx" = "yes"; then
diff --git a/glchess/src/chess-pgn.vala b/glchess/src/chess-pgn.vala
index e15bdcf..f376a6c 100644
--- a/glchess/src/chess-pgn.vala
+++ b/glchess/src/chess-pgn.vala
@@ -422,13 +422,12 @@ 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
{
- string contents;
- size_t n_read;
- file.load_contents (null, out contents, out n_read);
- this.from_string (contents);
+ uint8[] contents;
+ file.load_contents (null, out contents);
+ 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]