[gnome-nibbles/arnaudb/modernize-code] Make a variable private.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/modernize-code] Make a variable private.
- Date: Wed, 27 May 2020 16:09:22 +0000 (UTC)
commit 3cc1c3857b2edd461e439ad0458c94392aa29aef
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed May 27 15:26:14 2020 +0200
Make a variable private.
src/boni.vala | 2 +-
src/nibbles-view.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/boni.vala b/src/boni.vala
index 61f8804..8a6611e 100644
--- a/src/boni.vala
+++ b/src/boni.vala
@@ -45,7 +45,7 @@ private class Bonus : Object
private class Boni : Object
{
- internal Gee.LinkedList<Bonus> bonuses = new Gee.LinkedList<Bonus> ();
+ private Gee.LinkedList<Bonus> bonuses = new Gee.LinkedList<Bonus> ();
internal int numleft { internal get; internal set; default = 8; }
internal int numboni { internal get; private set; default = 8; }
diff --git a/src/nibbles-view.vala b/src/nibbles-view.vala
index 9c9fa53..b21662f 100644
--- a/src/nibbles-view.vala
+++ b/src/nibbles-view.vala
@@ -826,7 +826,7 @@ private class NibblesView : GtkClutter.Embed
internal void boni_rescale (int tile_size)
{
- foreach (var bonus in game.boni.bonuses)
+ foreach (var bonus in bonus_actors.keys)
{
var actor = bonus_actors.@get (bonus);
actor.set_size (tile_size, tile_size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]