[gnome-nibbles/arnaudb/wip/gtk4: 154/188] Adapt to GtkBox API (part 2).




commit 4dc9b06748d758aedcca85ab79d0293d9c3d8711
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun May 31 00:08:44 2020 +0200

    Adapt to GtkBox API (part 2).

 src/scoreboard.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/scoreboard.vala b/src/scoreboard.vala
index d34f042..1598de5 100644
--- a/src/scoreboard.vala
+++ b/src/scoreboard.vala
@@ -31,7 +31,7 @@ private class Scoreboard : Box
         /* Translators: text displayed under the game view, presenting the number of remaining lives; the %d 
is replaced by the number that identifies the player */
         var box = new PlayerScoreBox (_("Player %d").printf (worm.id + 1), color, worm.score, worm.lives, 
life_pixbuf); // FIXME: Consider changing this to "Worm %d"; It's set to "Player %d" for now to avoid a 
string change for 3.20.
         boxes.@set (box, worm);
-        add (box);
+        box.insert_before (this, /* insert last */ null);
     }
 
     internal void update ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]