[gnome-robots] Fixed previous commit.



commit db10dae1c2b812d54883b352dcf0270b9455feaa
Author: Nikhar Agrawal <nikharagrawal2006 gmail com>
Date:   Thu Aug 14 00:43:29 2014 +0530

    Fixed previous commit.

 src/gnome-robots.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index e4cd9ca..42200b6 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -392,6 +392,12 @@ 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"),
+                                         window,
+                                         GAMES_SCORES_STYLE_PLAIN_DESCENDING);
+
   gtk_widget_show_all (window);
 
   if (!load_game_configs ()) {
@@ -404,8 +410,6 @@ activate (GtkApplication *app, gpointer user_data)
                                          ("The program Robots was unable to find any valid game 
configuration files. Please check that the program is installed correctly."));
     gtk_window_set_resizable (GTK_WINDOW (errordialog), FALSE);
 
-  highscores = games_scores_context_new ("gnome-robots", "Games Type", window,
-                                 GAMES_SCORES_STYLE_PLAIN_DESCENDING);
     gtk_dialog_run (GTK_DIALOG (errordialog));
     exit (1);
   }


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