src/gnome-chess.vala: Fix build for new vala 0.36
This commit is contained in:
parent
7d6c93b58b
commit
1b27c4b8a9
1 changed files with 4 additions and 0 deletions
|
@ -1143,7 +1143,11 @@ Copyright © 2015–2016 Sahil Sareen""";
|
||||||
var model = (Gtk.ListStore) history_combo.model;
|
var model = (Gtk.ListStore) history_combo.model;
|
||||||
Gtk.TreeIter iter;
|
Gtk.TreeIter iter;
|
||||||
model.iter_nth_child (out iter, null, model.iter_n_children (null) - 1);
|
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);
|
model.remove (iter);
|
||||||
|
#fi
|
||||||
|
|
||||||
/* Always undo from the most recent move */
|
/* Always undo from the most recent move */
|
||||||
scene.move_number = -1;
|
scene.move_number = -1;
|
||||||
|
|
Loading…
Reference in a new issue