[gnome-nibbles/arnaudb/scores-dialog-icon] Fix icon in Scores dialog.



commit 2a24be42eac213002fb82c46d6140a2eaf62cdca
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Jul 5 23:52:34 2020 +0200

    Fix icon in Scores dialog.

 meson.build             | 2 +-
 src/nibbles-window.vala | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 7b97f54..a84af1c 100644
--- a/meson.build
+++ b/meson.build
@@ -25,7 +25,7 @@ gio_dep = dependency('gio-2.0', version: '>= @0@'.format(glib_version))
 glib_dep = dependency('glib-2.0', version: '>= @0@'.format(glib_version))
 gsound_dep = dependency('gsound', version: '>= 1.0.2')
 gtk_dep = dependency('gtk+-3.0', version: '>= 3.24.0')
-libgnome_games_support_dep = dependency('libgnome-games-support-1')
+libgnome_games_support_dep = dependency('libgnome-games-support-1', version: '>= 1.7.1')
 
 valac = meson.get_compiler('vala')
 posix_dep = valac.find_library('posix')
diff --git a/src/nibbles-window.vala b/src/nibbles-window.vala
index 59f72af..87c2d99 100644
--- a/src/nibbles-window.vala
+++ b/src/nibbles-window.vala
@@ -660,14 +660,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 (
+        scores_context = new Games.Scores.Context.with_importer_and_icon_name (
             "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));
+            new Games.Scores.DirectoryImporter.with_convert_func (get_new_scores_key),
+            "org.gnome.Nibbles");
     }
 
     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]