[Monodevelop-patches-list] r811 - in trunk/MonoDevelop/src: Libraries/MonoDevelop.Gui.Widgets/FileBrowser Main/Base/Gui/Pads
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Feb 7 17:56:05 EST 2004
Author: jluke
Date: 2004-02-07 17:56:04 -0500 (Sat, 07 Feb 2004)
New Revision: 811
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs
trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs
Log:
the other half of last commit
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs 2004-02-07 22:36:46 UTC (rev 810)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs 2004-02-07 22:56:04 UTC (rev 811)
@@ -26,7 +26,6 @@
IProperties p = (IProperties) PropertyService.GetProperty ("SharpDevelop.UI.SelectStyleOptions", new DefaultProperties ());
ignoreHidden = !p.GetProperty ("ICSharpCode.SharpDevelop.Gui.FileScout.ShowHidden", false);
- Console.WriteLine (ignoreHidden);
tv = new Gtk.TreeView ();
tv.RulesHint = true;
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs 2004-02-07 22:36:46 UTC (rev 810)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs 2004-02-07 22:56:04 UTC (rev 811)
@@ -378,6 +378,7 @@
FileList filelister = new FileList();
FileBrowser fb = new FileBrowser ();
Gtk.Entry pathEntry;
+ PropertyService PropertyService = (PropertyService) ServiceManager.Services.GetService (typeof (PropertyService));
public FileScout()
{
@@ -432,14 +433,25 @@
pathEntry.Text = fb.CurrentDir;
filelister.Clear ();
+ IProperties p = (IProperties) PropertyService.GetProperty ("SharpDevelop.UI.SelectStyleOptions", new DefaultProperties ());
+ bool ignoreHidden = !p.GetProperty ("ICSharpCode.SharpDevelop.Gui.FileScout.ShowHidden", false);
+
foreach (string f in fb.Files)
{
- //FIXME: hack to ignore . files
if (!(System.IO.Path.GetFileName (f)).StartsWith ("."))
{
FileList.FileListItem it = new FileList.FileListItem (f);
filelister.ItemAdded (it);
}
+ else
+ {
+ if (!ignoreHidden)
+ {
+ FileList.FileListItem it = new FileList.FileListItem (f);
+ filelister.ItemAdded (it);
+
+ }
+ }
}
}
More information about the Monodevelop-patches-list
mailing list