[gnome-nibbles/arnaudb/modernize-code: 24/58] Make a variable private.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/modernize-code: 24/58] Make a variable private.
- Date: Wed, 10 Jun 2020 17:14:57 +0000 (UTC)
commit 6ccc59cb0d97f39c1aa117b85434db4fa2cefffc
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]