[five-or-more/arnaudb/scores-dialog-icon] Fix icon in Scores dialog.



commit 8eaabb80bc4712fc37d81f4dbb5acb28733b79c1
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Jul 5 23:40:42 2020 +0200

    Fix icon in Scores dialog.

 meson.build                 |  2 +-
 org.gnome.five-or-more.json |  6 +++---
 src/window.vala             | 15 ++++++++-------
 3 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/meson.build b/meson.build
index b064433..ec110fc 100644
--- a/meson.build
+++ b/meson.build
@@ -21,7 +21,7 @@ gio_dep = dependency('gio-2.0', version: '>= ' + glib_min_version)
 glib_dep = dependency('glib-2.0', version: '>= ' + glib_min_version)
 gmodule_export_dep = dependency('gmodule-export-2.0')
 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')
 librsvg_dep = dependency('librsvg-2.0', version: '>= 2.32.0')
 
 # Libraries
diff --git a/org.gnome.five-or-more.json b/org.gnome.five-or-more.json
index 1233ae4..5ca93e6 100644
--- a/org.gnome.five-or-more.json
+++ b/org.gnome.five-or-more.json
@@ -30,8 +30,8 @@
             "name": "libgnome-games-support",
             "sources": [{
                 "type": "archive",
-                "url": 
"https://download.gnome.org/sources/libgnome-games-support/1.4/libgnome-games-support-1.4.0.tar.xz";,
-                "sha256": "1d89b145da7d4aedae3fa75456d97ed1b4a5bc062a01e7d0db93b006bdf11456"
+                "url": 
"https://download.gnome.org/sources/libgnome-games-support/1.7.1/libgnome-games-support-1.7.1.tar.xz";,
+                "sha256": "a625b32e12634bf94fa643f928eb46a387ed8eeb2fe969d5a868a775efc8e185"
             }]
         },
         {
@@ -44,4 +44,4 @@
             }]
         }
     ]
-}
\ No newline at end of file
+}
diff --git a/src/window.vala b/src/window.vala
index 62dd2f8..9f6e048 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -170,13 +170,14 @@ private class GameWindow : ApplicationWindow
     private inline void init_scores_dialog ()
     {
         var importer = new Games.Scores.DirectoryImporter ();
-        highscores = new Games.Scores.Context.with_importer ("five-or-more",
-                                                             /* Translators: text in the Scores dialog, 
introducing the combobox */
-                                                             _("Board Size: "),
-                                                             this,
-                                                             create_category_from_key,
-                                                             Games.Scores.Style.POINTS_GREATER_IS_BETTER,
-                                                             importer);
+        highscores = new Games.Scores.Context.with_importer_and_icon_name ("five-or-more",
+                                                                           /* Translators: text in the 
Scores dialog, introducing the combobox */
+                                                                           _("Board Size: "),
+                                                                           this,
+                                                                           create_category_from_key,
+                                                                           
Games.Scores.Style.POINTS_GREATER_IS_BETTER,
+                                                                           importer,
+                                                                           "org.gnome.five-or-more");
         game.game_over.connect (score_cb);
     }
 


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