[Monodevelop-patches-list] r534 - trunk/MonoDevelop/src/AddIns/Misc/StartPage

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Jan 18 01:04:12 EST 2004


Author: jluke
Date: 2004-01-18 01:04:12 -0500 (Sun, 18 Jan 2004)
New Revision: 534

Modified:
   trunk/MonoDevelop/src/AddIns/Misc/StartPage/Main.cs
   trunk/MonoDevelop/src/AddIns/Misc/StartPage/StartPage.cs
Log:
we have a css-less startpage


Modified: trunk/MonoDevelop/src/AddIns/Misc/StartPage/Main.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/Misc/StartPage/Main.cs	2004-01-18 03:04:30 UTC (rev 533)
+++ trunk/MonoDevelop/src/AddIns/Misc/StartPage/Main.cs	2004-01-18 06:04:12 UTC (rev 534)
@@ -4,7 +4,6 @@
 
 using ICSharpCode.Core.AddIns;
 using ICSharpCode.Core.AddIns.Codons;
-
 using ICSharpCode.SharpDevelop.Gui;
 
 namespace ICSharpCode.StartPage {
@@ -19,10 +18,12 @@
 					return;
 				}
 			}
-//			if (SharpDevelopMain.CommandLineArgs != null) {
-				//FIXME: commenting out until this actually works
-				//WorkbenchSingleton.Workbench.ShowView(new StartPageView());
-//			}
+			//if (SharpDevelopMain.CommandLineArgs != null) {
+				StartPageView spv = new StartPageView ();
+				WorkbenchSingleton.Workbench.ShowView(spv);
+				spv.DelayedInitialize ();
+				
+			//}
 		}
 	}
 }

Modified: trunk/MonoDevelop/src/AddIns/Misc/StartPage/StartPage.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/Misc/StartPage/StartPage.cs	2004-01-18 03:04:30 UTC (rev 533)
+++ trunk/MonoDevelop/src/AddIns/Misc/StartPage/StartPage.cs	2004-01-18 06:04:12 UTC (rev 534)
@@ -21,7 +21,7 @@
 	public class StartPageView : AbstractViewContent
 	{
 		// defining the control variables used
-		HtmlControl htmlControl;
+		MozillaControl htmlControl;
 		
 		// return the panel that contains all of our controls
 		public override Gtk.Widget Control {
@@ -70,17 +70,17 @@
 		// Default constructor: Initialize controls and display recent projects.
 		public StartPageView()
 		{
-			htmlControl = new HtmlControl();
+			htmlControl = new MozillaControl ();
 			PropertyService propertyService = (PropertyService)ServiceManager.Services.GetService(typeof(PropertyService));
-			htmlControl.CascadingStyleSheet = propertyService.DataDirectory + Path.DirectorySeparatorChar +
-			                                  "resources" + Path.DirectorySeparatorChar +
-			                                  "startpage" + Path.DirectorySeparatorChar +
-			                                  "Layout" + Path.DirectorySeparatorChar +
-			                                  "default.css";
+			//htmlControl.CascadingStyleSheet = propertyService.DataDirectory + Path.DirectorySeparatorChar +
+			//                                  "resources" + Path.DirectorySeparatorChar +
+			 //                                 "startpage" + Path.DirectorySeparatorChar +
+			  //                                "Layout" + Path.DirectorySeparatorChar +
+			    //                              "default.css";
 			
 			htmlControl.Html = page.Render(curSection);
 			htmlControl.ShowAll ();
-			htmlControl.BeforeNavigate += new BrowserNavigateEventHandler(HtmlControlBeforeNavigate);
+			//htmlControl.BeforeNavigate += new BrowserNavigateEventHandler(HtmlControlBeforeNavigate);
 			
 			StringParserService stringParserService = (StringParserService)ServiceManager.Services.GetService(typeof(StringParserService));
 			// Description of the tab shown in #develop
@@ -90,6 +90,11 @@
 			projectService.CombineOpened += new CombineEventHandler(HandleCombineOpened);
 		}
 		
+		public void DelayedInitialize ()
+		{
+			htmlControl.DelayedInitialize ();
+		}
+		
 		void HandleCombineOpened(object sender, CombineEventArgs e)
 		{
 			WorkbenchWindow.CloseWindow(true);




More information about the Monodevelop-patches-list mailing list