[gnome-nibbles/arnaudb/wip/gtk4: 151/188] Replace GamesGridFrame by GtkAspectFrame.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/wip/gtk4: 151/188] Replace GamesGridFrame by GtkAspectFrame.
- Date: Fri, 2 Oct 2020 15:55:21 +0000 (UTC)
commit a69d3e4660b4042f9658a3b7eef4d4f0c2963426
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat May 30 18:50:17 2020 +0200
Replace GamesGridFrame by GtkAspectFrame.
src/nibbles-window.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nibbles-window.vala b/src/nibbles-window.vala
index 441589e..f496ff4 100644
--- a/src/nibbles-window.vala
+++ b/src/nibbles-window.vala
@@ -64,7 +64,7 @@ private class NibblesWindow : ApplicationWindow
private NibblesView? view;
[GtkChild] private Box game_box;
- private Games.GridFrame frame;
+ private AspectFrame frame;
/* Game being played */
private NibblesGame? game = null;
@@ -155,13 +155,13 @@ private class NibblesWindow : ApplicationWindow
settings.get_int ("tile-size"),
!settings.get_boolean ("sound"));
- frame = new Games.GridFrame (NibblesView.WIDTH, NibblesView.HEIGHT);
+ frame = new AspectFrame (/* x align */ 0.5f, /* y align */ 0.5f, /* ratio ignored */ 0.0f, /* obey
child */ true);
game_box.pack_start (frame);
/* Create scoreboard */
scoreboard_life = NibblesView.load_pixmap_file ("scoreboard-life.svg", 2 * view.tile_size, 2 *
view.tile_size);
- frame.add (view);
+ frame.set_child (view);
/* Number of worms */
game.numhumans = settings.get_int ("players");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]