[gnome-nibbles/arnaudb/wip/gtk4: 184/188] Adapt to GamesScoresContext API.




commit ec8c2e186d9ded4d08a87a0949f0b253beecc667
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Oct 2 15:55:26 2020 +0200

    Adapt to GamesScoresContext API.

 src/nibbles-window.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nibbles-window.vala b/src/nibbles-window.vala
index f99d24b..7241188 100644
--- a/src/nibbles-window.vala
+++ b/src/nibbles-window.vala
@@ -768,15 +768,15 @@ private class NibblesWindow : ApplicationWindow
         /* Translators: Difficulty level with fake bonuses, displayed on the scores dialog */
         scorecats.add (new Games.Scores.Category ("fast-fakes", _("Fast with Fakes")));
 
-        scores_context = new Games.Scores.Context.with_importer_and_icon_name (
+        scores_context = new Games.Scores.Context.with_importer (
             "gnome-nibbles",
+            "org.gnome.Nibbles",
             /* Translators: label displayed on the scores dialog, preceding a difficulty. */
             _("Difficulty Level:"),
             this,
             category_request,
             Games.Scores.Style.POINTS_GREATER_IS_BETTER,
-            new Games.Scores.DirectoryImporter.with_convert_func (get_new_scores_key),
-            "org.gnome.Nibbles");
+            new Games.Scores.DirectoryImporter.with_convert_func (get_new_scores_key));
     }
 
     private Games.Scores.Category get_scores_category (int speed, bool fakes)


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