src/gnome-chess.vala: Fix build for new vala 0.36

This commit is contained in:
Javier Jardón 2017-02-26 13:26:50 +00:00
parent 7d6c93b58b
commit 1b27c4b8a9

View file

@ -1143,7 +1143,11 @@ Copyright © 20152016 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;