[gnome-robots] Moved context_new to activate.
- From: Michael Catanzaro <mcatanzaro src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-robots] Moved context_new to activate.
 
- Date: Sun, 14 Feb 2016 03:30:56 +0000 (UTC)
 
commit 922f6da6fd1e09705ef0df773bcd3f6d22bb5132
Author: Nikhar Agrawal <nikharagrawal2006 gmail com>
Date:   Wed Aug 13 22:56:29 2014 +0530
    Moved context_new to activate.
 src/gnome-robots.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index 0a3c44e..e4cd9ca 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -292,9 +292,6 @@ startup (GtkApplication *app, gpointer user_data)
 
   g_set_application_name (_("Robots"));
 
-  highscores = games_scores_context_new ("gnome-robots", "Games Type",/* window,*/
-                                 GAMES_SCORES_STYLE_PLAIN_DESCENDING);
-
   settings = g_settings_new ("org.gnome.robots");
 
   gtk_window_set_default_icon_name ("gnome-robots");
@@ -406,6 +403,9 @@ 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]