[gbrainy] Call Catalog.Init before showing the command line messages



commit 5b0cd3cf40dd002a8a52d54e6497a4e8c8bd989a
Author: Jordi Mas <jmas softcatala org>
Date:   Wed Jun 30 00:48:36 2010 +0200

    Call Catalog.Init before showing the command line messages

 src/Clients/Classical/gbrainy.cs |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/Clients/Classical/gbrainy.cs b/src/Clients/Classical/gbrainy.cs
index 5501273..c427269 100644
--- a/src/Clients/Classical/gbrainy.cs
+++ b/src/Clients/Classical/gbrainy.cs
@@ -77,8 +77,6 @@ namespace gbrainy.Clients.Classical
 		{
 			Catalog.Init ("gbrainy", Defines.GNOME_LOCALE_DIR);
 			Unix.FixLocaleInfo ();
-
-			Initialize ();
 		}
 
 		public GameSession Session {
@@ -90,7 +88,7 @@ namespace gbrainy.Clients.Classical
 			set { initial_session = value; }
 		}
 
-		void Initialize ()
+		public void Initialize ()
 		{
 			session = new GameSession ();
 			session.DrawRequest += SessionDrawRequest;
@@ -686,18 +684,19 @@ namespace gbrainy.Clients.Classical
 				Unix.SetProcessName ("gbrainy");
 			} catch {}
 
+			GtkClient app = new GtkClient ();
 			CommandLine line = new CommandLine (args);
 			line.Parse ();
 
 			if (line.Continue == false)
 				return;
 
-			GtkClient app = new GtkClient ();
 			if (line.PlayList != null) {
 				app.Session.GameManager.PlayList = line.PlayList;
 				app.InitialSessionType = GameSession.Types.Custom;
 			}
 
+			app.Initialize ();
 			app.Session.GameManager.RandomOrder = line.RandomOrder;
 
 			app.ProcessDefaults ();



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