[gnome-klotski] Fix icon in Scores dialog.



commit 2009ae9b5e810b2b9d069ba94715b05c2e27b04a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Jun 22 15:05:24 2020 +0200

    Fix icon in Scores dialog.

 meson.build             | 2 +-
 src/klotski-window.vala | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 52ade07..697926d 100644
--- a/meson.build
+++ b/meson.build
@@ -12,7 +12,7 @@ python3 = import('python3')
 
 gee_dependency = dependency('gee-0.8')
 glib_dependency = dependency('glib-2.0', version: '>= 2.42.0')
-gnome_games_support_dependency = dependency('libgnome-games-support-1')
+gnome_games_support_dependency = dependency('libgnome-games-support-1', version: '>= 1.7.1')
 gtk_dependency = dependency('gtk+-3.0', version: '>= 3.24.0')
 rsvg_dependency = dependency('librsvg-2.0', version: '>= 2.32.0')
 posix_dependency = meson.get_compiler('vala').find_library('posix')
diff --git a/src/klotski-window.vala b/src/klotski-window.vala
index d660703..f6f2836 100644
--- a/src/klotski-window.vala
+++ b/src/klotski-window.vala
@@ -548,14 +548,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 (
+        scores_context = new Games.Scores.Context.with_importer_and_icon_name (
             "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));
+             new Games.Scores.HistoryFileImporter (parse_old_score),
+             "org.gnome.Klotski");
 
         // 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]