[Monodevelop-patches-list] r400 - src/Main/Base/Gui/BrowserDisplayBinding

commit-watcher at sevenl.net commit-watcher at sevenl.net
Tue Jan 6 22:06:02 EST 2004


Author: tberman
Date: 2004-01-06 22:06:02 -0500 (Tue, 06 Jan 2004)
New Revision: 400

Modified:
   src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs
Log:
checking in, its more fixed, but not totally fixed


Modified: src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs
===================================================================
--- src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs	2004-01-07 02:17:17 UTC (rev 399)
+++ src/Main/Base/Gui/BrowserDisplayBinding/HtmlViewPane.cs	2004-01-07 03:06:02 UTC (rev 400)
@@ -85,17 +85,17 @@
 		//}
 	}
 	
-	public class HtmlViewPane : VBox
+	public class HtmlViewPane : Gtk.Frame
 	{
 		HtmlControl htmlControl = null;
 		
-		VBox   topPanel   = new VBox ();
+		VBox   topPanel   = new VBox (false, 2);
 		Toolbar toolBar    = new Toolbar ();
 		Entry urlTextBox = new Entry ();
 		
 		bool   isHandleCreated  = false;
 		string lastUrl     = null;
-		static GLib.GType type;
+		//static GLib.GType type;
 		
 		public HtmlControl HtmlControl {
 			get {
@@ -105,20 +105,21 @@
 		
 		static HtmlViewPane ()
 		{
-			type = RegisterGType (typeof (HtmlViewPane));
+		//	type = RegisterGType (typeof (HtmlViewPane));
 		}
 		
-		public HtmlViewPane(bool showNavigation) : base (type)
+		public HtmlViewPane(bool showNavigation) : base ()
 		{
 			//RequestSize = new Size (500, 500);
-			
+			
+			Shadow = Gtk.ShadowType.None;
+			VBox mainbox = new VBox (false, 2);
+			
 			if (showNavigation) {
 				
 				//topPanel.RequestSize = new Size (Width, 25);
 				//topPanel.Dock = DockStyle.Top;
 				
-				this.Add (topPanel);
-				
 				//toolBar.Dock = DockStyle.None;
 				
 				Button toolBarBack = new Button (Gtk.Stock.GoBack);
@@ -144,6 +145,7 @@
 				urlTextBox.Activated += new EventHandler (OnEntryActivated);
 				
 				topPanel.Add (urlTextBox);
+				mainbox.PackStart (topPanel, false, false, 2);
 				
 			} 
 			
@@ -161,11 +163,11 @@
 			//axWebBrowser.HandleCreated += new EventHandler(this.CreatedWebBrowserHandle);
 			//axWebBrowser.TitleChange   += new DWebBrowserEvents2_TitleChangeEventHandler(TitleChange);
 			
-			this.PackStart (htmlControl);
+			Console.WriteLine ("about to pack in the htmlControl");
+			mainbox.PackStart (htmlControl.Control);
+			Console.WriteLine ("htmlControl packed");
 			
-			if (showNavigation) {
-				this.PackStart (topPanel);
-			}
+			this.Add (mainbox);
 		}
 		
 		//void TitleChange(object sender, DWebBrowserEvents2_TitleChangeEvent e)




More information about the Monodevelop-patches-list mailing list