[Monodevelop-patches-list] r1881 - trunk/MonoDevelop/Core/src/Main/StartUp

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Thu Jul 1 23:05:53 EDT 2004


Author: jluke
Date: 2004-07-01 23:05:52 -0400 (Thu, 01 Jul 2004)
New Revision: 1881

Modified:
   trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog
   trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs
   trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopOptions.cs
Log:
nologo and half of -f


Modified: trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog	2004-07-02 01:44:24 UTC (rev 1880)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog	2004-07-02 03:05:52 UTC (rev 1881)
@@ -1,5 +1,10 @@
 2004-07-01  John Luke  <jluke at cfl.rr.com>
 
+	* MonoDevelopMain.cs: implement nologo
+	* MonoDevelopOptions.cs: add -f and --nologo args
+
+2004-07-01  John Luke  <jluke at cfl.rr.com>
+
 	* AssemblyInfo.cs.in: clean up and add some informaition used below
 	* Makefile.am: add Mono.GetOptions reference and new file
 	* MonoDevelopOptions.cs: new file for handling options

Modified: trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs	2004-07-02 01:44:24 UTC (rev 1880)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs	2004-07-02 03:05:52 UTC (rev 1881)
@@ -66,6 +66,7 @@
 			string socket_filename = "/tmp/md-" + Environment.GetEnvironmentVariable ("USER") + "-socket";
 			listen_socket = new Socket (AddressFamily.Unix, SocketType.Stream, ProtocolType.IP);
 			EndPoint ep = new UnixEndPoint (socket_filename);
+
 			if (File.Exists (socket_filename)) {
 				try {
 					listen_socket.Connect (ep);
@@ -86,15 +87,7 @@
 		
 			SplashScreenForm.SetCommandLineArgs(remainingArgs);
 			
-			foreach (string parameter in SplashScreenForm.GetParameterList()) {
-				switch (parameter.ToUpper()) {
-					case "NOLOGO":
-						noLogo = true;
-						break;
-				}
-			}
-
-			if (!noLogo) {
+			if (!options.nologo) {
 				SplashScreenForm.SplashScreen.ShowAll ();
 				RunMainLoop ();
 			}
@@ -118,8 +111,7 @@
 					RunMainLoop ();
 				}
 
-				// We don't have yet an alternative for Application.ThreadException
-				// How can we handle this?
+				// no alternative for Application.ThreadException?
 				// Application.ThreadException += new ThreadExceptionEventHandler(ShowErrorBox);
 
 			} catch (XmlException e) {

Modified: trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopOptions.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopOptions.cs	2004-07-02 01:44:24 UTC (rev 1880)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopOptions.cs	2004-07-02 03:05:52 UTC (rev 1881)
@@ -9,6 +9,14 @@
 		{
 			base.ParsingMode = OptionsParsingMode.Both;
 		}
+
+		// FIXME: we really ignore this, but this allows
+		// us to know it is ok to reuse the socket
+		[Option ("Start with this file open.", 'f')]
+		public bool file;
+
+		[Option ("Do not display splash screen.")]
+		public bool nologo;
 	}
 }
 




More information about the Monodevelop-patches-list mailing list