[Monodevelop-patches-list] r921 - in trunk/MonoDevelop: libmonodevelop src/Libraries/MonoDevelop.Gui.Widgets/TabLabel src/Main/Base/Commands

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Feb 15 16:03:52 EST 2004


Author: jluke
Date: 2004-02-15 16:03:52 -0500 (Sun, 15 Feb 2004)
New Revision: 921

Modified:
   trunk/MonoDevelop/libmonodevelop/Makefile.am
   trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/TabLabel/TabLabel.cs
   trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs
Log:
default to ~/MonoDevelopProjects, closes bug#52786


Modified: trunk/MonoDevelop/libmonodevelop/Makefile.am
===================================================================
--- trunk/MonoDevelop/libmonodevelop/Makefile.am	2004-02-15 20:13:38 UTC (rev 920)
+++ trunk/MonoDevelop/libmonodevelop/Makefile.am	2004-02-15 21:03:52 UTC (rev 921)
@@ -36,7 +36,7 @@
 clean:
 	rm -f libmonodevelop.so $(libmonodevelop_OBJECTS)
 
-CLEANFILES= ../build/bin/libmonodevelop.so
+CLEANFILES= ../build/bin/libmonodevelop.so libmonodevelop.so
 
 .PHONY: clean
 

Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/TabLabel/TabLabel.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/TabLabel/TabLabel.cs	2004-02-15 20:13:38 UTC (rev 920)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/TabLabel/TabLabel.cs	2004-02-15 21:03:52 UTC (rev 921)
@@ -15,16 +15,16 @@
 		public TabLabel (Label label, Gtk.Image icon) : base (GType)
 		{
 			this.icon = icon;
-			this.Add (icon);
+			this.PackStart (icon, false, true, 2);
 
 			title = label;
-			this.Add (title);
+			this.PackStart (title, false, true, 0);
 			
 			btn = new Button ();
-			btn.Child = new Gtk.Image ("../data/resources/icons/MonoDevelop.Close.png");
+			btn.Add (new Gtk.Image ("../data/resources/icons/MonoDevelop.Close.png"));
 			btn.Relief = ReliefStyle.None;
 			btn.RequestSize = new Size (16, 16);
-			this.Add (btn);
+			this.PackStart (btn, true, true, 2);
 
 			this.ShowAll ();
 		}

Modified: trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs	2004-02-15 20:13:38 UTC (rev 920)
+++ trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs	2004-02-15 21:03:52 UTC (rev 921)
@@ -211,7 +211,7 @@
 		public override void Run()
 		{
 			Gtk.FileSelection fs = new Gtk.FileSelection ("File to Open");
-			fs.Complete (Environment.GetEnvironmentVariable ("HOME"));
+			fs.Complete (System.IO.Path.Combine (Environment.GetEnvironmentVariable ("HOME"), "MonoDevelopProjects"));
 			int response = fs.Run ();
 			string name = fs.Filename;
 			fs.Hide ();
@@ -294,7 +294,7 @@
 				}
 
 				Gtk.FileSelection fs = new Gtk.FileSelection ("File to Open");
-				fs.Complete (Environment.GetEnvironmentVariable ("HOME"));
+				fs.Complete (System.IO.Path.Combine (Environment.GetEnvironmentVariable ("HOME"), "MonoDevelopProjects"));
 				int response = fs.Run ();
 				string name = fs.Filename;
 				fs.Destroy ();




More information about the Monodevelop-patches-list mailing list