[gnome-2048/arnaudb/wip/gtk4: 57/57] Adapt to GridLayoutChild API.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048/arnaudb/wip/gtk4: 57/57] Adapt to GridLayoutChild API.
- Date: Mon, 28 Sep 2020 14:35:56 +0000 (UTC)
commit 89b2b171f3ccd9c95797eb23ab695c50c0c23f9f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Sep 28 16:20:25 2020 +0200
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]