[gnome-robots] Import scores from 3.18
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-robots] Import scores from 3.18
- Date: Sun, 14 Feb 2016 03:32:58 +0000 (UTC)
commit 9443e103f0d0b53e3ec9b4af1fc2611751fcf64b
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Feb 13 21:29:52 2016 -0600
Import scores from 3.18
src/gnome-robots.c | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index fd8ec37..47bd8c6 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -345,6 +345,7 @@ activate (GtkApplication *app, gpointer user_data)
GtkWidget *errordialog, *vbox, *hbox, *label, *button, *gridframe;
GtkSizeGroup *size_group;
GtkStyleContext *style_context;
+ GamesScoresDirectoryImporter *importer;
headerbar = gtk_header_bar_new ();
gtk_header_bar_set_title (GTK_HEADER_BAR (headerbar), _("Robots"));
@@ -426,13 +427,17 @@ activate (GtkApplication *app, gpointer user_data)
MINIMUM_TILE_WIDTH * GAME_WIDTH,
MINIMUM_TILE_HEIGHT * GAME_HEIGHT);
- highscores = games_scores_context_new ("gnome-robots",
- /* Label on the scores dialog, next to map type dropdown */
- _("Game Type:"),
- GTK_WINDOW (window),
- create_category_from_key,
- NULL,
- GAMES_SCORES_STYLE_PLAIN_DESCENDING);
+ importer = games_scores_directory_importer_new ();
+ highscores = games_scores_context_new_with_importer ("gnome-robots",
+ /* Label on the scores dialog, next to map type
dropdown */
+ _("Game Type:"),
+ GTK_WINDOW (window),
+ create_category_from_key,
+ NULL,
+ GAMES_SCORES_STYLE_PLAIN_DESCENDING,
+ GAMES_SCORES_IMPORTER (importer));
+ g_object_unref (importer);
+
gtk_widget_show_all (window);
if (!load_game_configs ()) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]