[Monodevelop-patches-list] r705 - in trunk/MonoDevelop/src/Main/Base: Commands Gui/CompletionDatabaseWizard Gui/Dialogs/Wizard

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Wed Jan 28 16:34:46 EST 2004


Author: tberman
Date: 2004-01-28 16:34:46 -0500 (Wed, 28 Jan 2004)
New Revision: 705

Modified:
   trunk/MonoDevelop/src/Main/Base/Commands/AutostartCommands.cs
   trunk/MonoDevelop/src/Main/Base/Gui/CompletionDatabaseWizard/CreationFinishedPanel.cs
   trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/Wizard/WizardDialog.cs
Log:
this is the ugliest hacky workaround in the world

but it fails out the code complete gracefully
we need to figure out why the real bug is occuring and fix that, asap


Modified: trunk/MonoDevelop/src/Main/Base/Commands/AutostartCommands.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Commands/AutostartCommands.cs	2004-01-28 17:48:17 UTC (rev 704)
+++ trunk/MonoDevelop/src/Main/Base/Commands/AutostartCommands.cs	2004-01-28 21:34:46 UTC (rev 705)
@@ -78,7 +78,8 @@
 			
 			WizardDialog wizard = new WizardDialog("Initialize Code Completion Database", customizer, "/SharpDevelop/CompletionDatabaseWizard");
 			propertyService.SetProperty("SharpDevelop.CodeCompletion.DataDirectory", customizer.GetProperty("SharpDevelop.CodeCompletion.DataDirectory", String.Empty));
-			wizard.Run ();
+			//wizard.Run ();
+			Gtk.Application.Run ();
 			wizard.Hide ();
 
 			// restart  & exit 

Modified: trunk/MonoDevelop/src/Main/Base/Gui/CompletionDatabaseWizard/CreationFinishedPanel.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/CompletionDatabaseWizard/CreationFinishedPanel.cs	2004-01-28 17:48:17 UTC (rev 704)
+++ trunk/MonoDevelop/src/Main/Base/Gui/CompletionDatabaseWizard/CreationFinishedPanel.cs	2004-01-28 21:34:46 UTC (rev 705)
@@ -23,7 +23,7 @@
 		
 		public override bool ReceiveDialogMessage(DialogMessage message)
 		{
-	    	return true;
+	    		return true;
 		}
 		
 		static PropertyService propertyService = (PropertyService)ServiceManager.Services.GetService(typeof(PropertyService));

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/Wizard/WizardDialog.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/Wizard/WizardDialog.cs	2004-01-28 17:48:17 UTC (rev 704)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/Wizard/WizardDialog.cs	2004-01-28 21:34:46 UTC (rev 705)
@@ -188,7 +188,10 @@
 				statusPanel.GdkWindow.InvalidateRect (new Rectangle (0, 0, 400, 400), true);
 				dialogPanel.Remove (dialogPanel.Child);
 			}
-			//Control panelControl = CurrentWizardPane.Control;
+			if (CurrentWizardPane.ToString () == "ICSharpCode.SharpDevelop.Gui.Dialogs.OptionPanels.CompletionDatabaseWizard.CreationFinishedPanel") {
+				Console.WriteLine ("This is an ugly hack for an even uglier bug, Restart MD now");
+				System.Environment.Exit (0);
+			}
 			dialogPanel.Add(CurrentWizardPane.Control);
 
 			this.ShowAll ();
@@ -228,15 +231,12 @@
 			int nextID = GetSuccessorNumber(this.ActivePanelNumber);
 			Debug.Assert(nextID < wizardPanels.Count && nextID >= 0);
 
-			//Console.WriteLine ("Inside ShowNextPanelEvent");
 			if (!CurrentWizardPane.ReceiveDialogMessage(DialogMessage.Next)) {
 				return;
 			}
 			CurrentWizardPane.ReceiveDialogMessage (DialogMessage.Next);
-			Console.WriteLine ("Past ReceiveDialogMessage call");
 			idStack.Push(activePanelNumber);
 			ActivatePanel(nextID);
-			Console.WriteLine ("Activating panel" + nextID);
 			CurrentWizardPane.ReceiveDialogMessage(DialogMessage.Activated);
 		}
 		




More information about the Monodevelop-patches-list mailing list