[gnome-klotski/arnaudb/wip/gtk4: 24/25] Adapt a method.




commit 45a5426fd0a750d082a169080636f40de6a91408
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Jul 31 18:01:31 2020 +0200

    Adapt a method.

 src/klotski-window.vala | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/klotski-window.vala b/src/klotski-window.vala
index 97ee070..472919b 100644
--- a/src/klotski-window.vala
+++ b/src/klotski-window.vala
@@ -549,15 +549,15 @@ private class KlotskiWindow : ApplicationWindow
         lookup_non_nullable_action ("next-puzzle",  out next_puzzle);
         lookup_non_nullable_action ("start-game",   out start_game);
 
-        scores_context = new Games.Scores.Context.with_importer_and_icon_name (
+        scores_context = new Games.Scores.Context.with_importer (
             "gnome-klotski",
-             /* Translators: in the Scores dialog, label indicating for which puzzle the best scores are 
displayed */
-             _("Puzzle"),
-             this,
-             category_request,
-             Games.Scores.Style.POINTS_LESS_IS_BETTER,
-             new Games.Scores.HistoryFileImporter (parse_old_score),
-             "org.gnome.Klotski");
+            "org.gnome.Klotski",
+            /* Translators: in the Scores dialog, label indicating for which puzzle the best scores are 
displayed */
+            _("Puzzle"),
+            this,
+            category_request,
+            Games.Scores.Style.POINTS_LESS_IS_BETTER,
+            new Games.Scores.HistoryFileImporter (parse_old_score));
 
         // name, active, puzzle number (or -1), sensitive=false CSS hack
         liststore_huarong   = new Gtk.ListStore (4, typeof (string), typeof (bool), typeof (int), typeof 
(bool));


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