[gnome-robots/arnaudb/wip/gtk4: 29/32] Adapt to GamesScoresContext API.




commit 4e6c2885ba19c9600ba4321fadc631b097b6bc49
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Sep 15 16:45:12 2020 +0200

    Adapt to GamesScoresContext API.

 src/gnome-robots.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index 50d8440..bf7989a 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -473,15 +473,15 @@ activate (GtkApplication *app, gpointer user_data)
                                MINIMUM_TILE_HEIGHT * GAME_HEIGHT);
 
   importer = games_scores_directory_importer_new ();
-  highscores = games_scores_context_new_with_importer_and_icon_name ("gnome-robots",
-                                                                     /* Label on the scores dialog, next to 
map type dropdown */
-                                                                     _("Game Type:"),
-                                                                     GTK_WINDOW (window),
-                                                                     create_category_from_key,
-                                                                     NULL,
-                                                                     
GAMES_SCORES_STYLE_POINTS_GREATER_IS_BETTER,
-                                                                     GAMES_SCORES_IMPORTER (importer),
-                                                                     "org.gnome.Robots");
+  highscores = games_scores_context_new_with_importer ("gnome-robots",
+                                                       "org.gnome.Robots",
+                                                       /* Label on the scores dialog, next to map type 
dropdown */
+                                                       _("Game Type:"),
+                                                       GTK_WINDOW (window),
+                                                       create_category_from_key,
+                                                       NULL,
+                                                       GAMES_SCORES_STYLE_POINTS_GREATER_IS_BETTER,
+                                                       GAMES_SCORES_IMPORTER (importer));
   g_object_unref (importer);
 
   if (!load_game_configs ()) {


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