[gnome-nibbles/arnaudb/scores-dialog-icon: 37/37] Fix icon in Scores dialog.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/scores-dialog-icon: 37/37] Fix icon in Scores dialog.
- Date: Wed, 15 Jul 2020 16:24:44 +0000 (UTC)
commit ec52aab01e004a995e55b4b3d4ef9c5ff3c9b3ba
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 92f1799..4d2ca8b 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 19d9d3e..6961326 100644
--- a/src/nibbles-window.vala
+++ b/src/nibbles-window.vala
@@ -750,14 +750,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]