[gnome-games] Work with Vala 0.14
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] Work with Vala 0.14
- Date: Fri, 1 Jul 2011 11:00:37 +0000 (UTC)
commit e039ba25ed987a1783d7125d2bce3541d1f7e667
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Jul 1 11:58:45 2011 +0100
Work with Vala 0.14
configure.in | 2 +-
glchess/src/chess-pgn.vala | 9 ++++-----
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/configure.in b/configure.in
index a1dad96..30cde63 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 7cf025d..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]