[gnome-nibbles] Use newer scores import API of libgames-support
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles] Use newer scores import API of libgames-support
- Date: Sat, 13 Feb 2016 21:19:00 +0000 (UTC)
commit 267fcec7019545ad61aad0d92d3277b20a225b4b
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Feb 13 15:18:21 2016 -0600
Use newer scores import API of libgames-support
src/gnome-nibbles.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 820940c..0613625 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -650,8 +650,6 @@ public class Nibbles : Gtk.Application
/* Translators: Difficulty level with fake bonuses, displayed on the scores dialog */
scorecats.add (new Games.Scores.Category ("fast-fakes", _("Fast with Fakes")));
- var importer = new Games.Scores.Importer (Games.Scores.Importer.OldFormat.C_GAMES_MULTI_FILE_FORMAT,
- get_new_scores_key);
scores_context = new Games.Scores.Context.with_importer (
"gnome-nibbles",
/* Displayed on the scores dialog, preceeding a difficulty. */
@@ -659,7 +657,7 @@ public class Nibbles : Gtk.Application
window,
category_request,
Games.Scores.Style.PLAIN_DESCENDING,
- importer);
+ new Games.Scores.DirectoryImporter (get_new_scores_key));
}
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]