From 89b2b171f3ccd9c95797eb23ab695c50c0c23f9f Mon Sep 17 00:00:00 2001 From: Arnaud Bonatti Date: Mon, 28 Sep 2020 16:20:25 +0200 Subject: [PATCH] Adapt to GridLayoutChild API. --- src/game.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game.vala b/src/game.vala index 8bf641f..6607de8 100644 --- a/src/game.vala +++ b/src/game.vala @@ -429,10 +429,10 @@ private class Game : Gtk.Widget assert_not_reached (); Gtk.GridLayoutChild rect_layout = (Gtk.GridLayoutChild) layout.get_layout_child ((!) nullable_tile); - tile_layout.set_left_attach ( to.col); - tile_layout.set_top_attach ( to.row); - rect_layout.set_left_attach (from.col); - rect_layout.set_top_attach (from.row); + tile_layout.set_column ( to.col); + tile_layout.set_row ( to.row); + rect_layout.set_column (from.col); + rect_layout.set_row (from.row); _foreground_nxt [ to.col, to.row] = _foreground_cur [from.col, from.row]; _foreground_cur [from.col, from.row] = null; -- GitLab