[Monodevelop-patches-list] r797 - 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
Thu Feb 5 22:22:43 EST 2004
Author: tberman
Date: 2004-02-05 22:22:43 -0500 (Thu, 05 Feb 2004)
New Revision: 797
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs
trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs
Log:
some behavioural fixups
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs 2004-02-05 21:51:01 UTC (rev 796)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/FileBrowser/FileBrowser.cs 2004-02-06 03:22:43 UTC (rev 797)
@@ -13,6 +13,7 @@
private string currentDir;
private bool ignoreHidden;
private string[] files;
+ private bool init = false;
public FileBrowser () : base (GType)
{
@@ -33,6 +34,7 @@
this.Add (tv);
this.ShowAll ();
+ init = true;
}
public bool IgnoreHidden
@@ -55,7 +57,12 @@
public string[] Files
{
- get { return files; }
+ get {
+ if (files == null) {
+ return new string [0];
+ }
+ return files;
+ }
}
public static new GLib.GType GType
@@ -93,6 +100,8 @@
store.AppendValues (d.Name);
}
}
+ if (init == true)
+ tv.Selection.SelectPath (new Gtk.TreePath ("0"));
}
private void OnSelectionChanged (object o, EventArgs args)
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs 2004-02-05 21:51:01 UTC (rev 796)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs 2004-02-06 03:22:43 UTC (rev 797)
@@ -409,6 +409,7 @@
Pack2(listf, true, true);
//OnDirChanged (fb, new EventArgs ());
+ fb.TreeView.Selection.SelectPath (new Gtk.TreePath ("0"));
}
void OnHomeClicked (object sender, EventArgs args)
More information about the Monodevelop-patches-list
mailing list