[gnome-robots/wip/libgames-support: 7/22] Moved context_new to activate.



commit ef1a6726c70ad52ca7f7250a5703e708a9117686
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 f3518fc..9b8db17 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");
@@ -404,6 +401,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]