[Monodevelop-patches-list] r2600 - in trunk/MonoDevelop/Core/src/MonoDevelop.Base: . Gui/Dialogs/ReferenceDialog

John Luke <jluke@cfl.rr.com> jluke at mono-cvs.ximian.com
Wed Jun 15 16:15:42 EDT 2005


Author: jluke
Date: 2005-06-15 16:15:42 -0400 (Wed, 15 Jun 2005)
New Revision: 2600

Modified:
   trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
   trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/ReferenceDialog/AssemblyReferencePanel.cs
Log:
filter on *.dll and *.exe
and set initial dir to $HOME


Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog	2005-06-15 19:54:40 UTC (rev 2599)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog	2005-06-15 20:15:42 UTC (rev 2600)
@@ -1,5 +1,11 @@
 2005-06-15  John Luke  <john.luke at gmail.com>
 
+	* Gui/Dialogs/ReferenceDialog/AssemblyReferencePanel.cs:
+	start at $HOME dir
+	filter on *.exe and *.dll
+
+2005-06-15  John Luke  <john.luke at gmail.com>
+
 	* Base.glade (AddReferenceDialog):
 	change title to Edit References to match menu
 	put the selected references section in an expander

Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/ReferenceDialog/AssemblyReferencePanel.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/ReferenceDialog/AssemblyReferencePanel.cs	2005-06-15 19:54:40 UTC (rev 2599)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Dialogs/ReferenceDialog/AssemblyReferencePanel.cs	2005-06-15 20:15:42 UTC (rev 2600)
@@ -27,7 +27,16 @@
 			this.selectDialog = selectDialog;
 			
 			chooser = new FileChooserWidget (FileChooserAction.Open, "");
+			chooser.SetCurrentFolder (Environment.GetFolderPath (Environment.SpecialFolder.Personal));
 			chooser.SelectMultiple = true;
+
+			// this should only allow dll's and exe's
+			FileFilter filter = new FileFilter ();
+			filter.Name = GettextCatalog.GetString ("Assemblies");
+			filter.AddPattern ("*.dll");
+			filter.AddPattern ("*.exe");
+			chooser.AddFilter (filter);
+
 			PackStart (chooser, true, true, 0);
 			
 			PackStart (new Gtk.VSeparator(), false, false, 0);
@@ -45,9 +54,6 @@
 		
 		void SelectReferenceDialog(object sender, EventArgs e)
 		{
-			// FIXME: this should only allow dll's and exe's
-			// fdiag.Complete("*");
-			
 			string[] selectedFiles = new string[chooser.Filenames.Length];
 			chooser.Filenames.CopyTo(selectedFiles, 0);
 		




More information about the Monodevelop-patches-list mailing list