[gnome-mines/arnaudb/wip/gtk4: 34/40] Adapt to ScoresDialog API.




commit d5e1b5759b15dd254fdd73d0a2dc5c3a46086e9d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Sep 7 17:37:51 2020 +0200

    Adapt to ScoresDialog API.

 src/gnome-mines.vala | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-mines.vala b/src/gnome-mines.vala
index 8c2d18d..3a2d467 100644
--- a/src/gnome-mines.vala
+++ b/src/gnome-mines.vala
@@ -275,14 +275,14 @@ public class Mines : Gtk.Application
         /* Initialize Custom Game Screen */
         startup_custom_game_screen (ui_builder);
 
-        context = new Games.Scores.Context.with_importer_and_icon_name ("gnome-mines",
-                                                                        /* Label on the scores dialog */
-                                                                        _("Minefield:"),
-                                                                        window,
-                                                                        create_category_from_key,
-                                                                        
Games.Scores.Style.TIME_LESS_IS_BETTER,
-                                                                        new Games.Scores.HistoryFileImporter 
(parse_old_score),
-                                                                        "org.gnome.Mines");
+        context = new Games.Scores.Context.with_importer ("gnome-mines",
+                                                          "org.gnome.Mines",
+                                                          /* Label on the scores dialog */
+                                                          _("Minefield:"),
+                                                          window,
+                                                          create_category_from_key,
+                                                          Games.Scores.Style.TIME_LESS_IS_BETTER,
+                                                          new Games.Scores.HistoryFileImporter 
(parse_old_score));
 
         flag_label = (Label) ui_builder.get_object ("flag_label");
         clock_label = (Label) ui_builder.get_object ("clock_label");


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