[gnome-robots/arnaudb/wip/gtk4: 2/4] Adapt to GamesScoresContext API.




commit c35be8023d17c5c2ae36e697c4a9cc31581856e1
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]