[gnome-chess] src/gnome-chess.vala: Fix build for new vala 0.36
- From: Javier Jardón Cabezas <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] src/gnome-chess.vala: Fix build for new vala 0.36
- Date: Sun, 26 Feb 2017 22:38:57 +0000 (UTC)
commit 1b27c4b8a90fdd20748a323671270063b55c9a49
Author: Javier Jardón <jjardon gnome org>
Date: Sun Feb 26 13:26:50 2017 +0000
src/gnome-chess.vala: Fix build for new vala 0.36
src/gnome-chess.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 70b7458..0557c9f 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1143,7 +1143,11 @@ Copyright © 2015–2016 Sahil Sareen""";
var model = (Gtk.ListStore) history_combo.model;
Gtk.TreeIter iter;
model.iter_nth_child (out iter, null, model.iter_n_children (null) - 1);
+#if VALA_0_36
+ model.remove (ref iter);
+#else
model.remove (iter);
+#fi
/* Always undo from the most recent move */
scene.move_number = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]