[swell-foop/arnaudb/history: 6/7] Clean an API.



commit b8f3fed7537eb99e749130b5573be2c8ac38d19d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri May 22 16:21:23 2020 +0200

    Clean an API.

 src/window.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/window.vala b/src/window.vala
index 1fad528..58ea963 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -99,7 +99,7 @@ private class SwellFoopWindow : ApplicationWindow
         init_scores ();
 
         /* show the current score */
-        update_score_cb (0);
+        update_score_cb ();
 
         /* Create a clutter renderer widget */
         view = new GameView ();
@@ -161,7 +161,7 @@ private class SwellFoopWindow : ApplicationWindow
     * * various
     \*/
 
-    private void update_score_cb (uint points_awarded)
+    private void update_score_cb ()
     {
         uint score = 0;
         if (game != null)
@@ -206,7 +206,7 @@ private class SwellFoopWindow : ApplicationWindow
                          (uint8) settings.get_int ("colors"),
                          saved_game);
         game_in_progress = game.score != 0;
-        update_score_cb (game.score);
+        update_score_cb ();
 
         /* Game score change will be sent to the main window and show in the score label */
         game.update_score.connect (update_score_cb);


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