[Monodevelop-patches-list] r2376 - in trunk/MonoDevelop/Core/src/MonoDevelop.Base: . Gui/Pads/FileScout
Christian Hergert <chris@mosaix.net>
chergert at mono-cvs.ximian.com
Sun Mar 20 01:05:56 EST 2005
Author: chergert
Date: 2005-03-20 01:05:56 -0500 (Sun, 20 Mar 2005)
New Revision: 2376
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/FileScout/FileScout.cs
Log:
* /Gui/Pads/FileScout/FileScout.cs: Change directories in the FileScout
to the base directory of a opened combine. Return to home directory
upon close of the combine.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-03-19 18:07:36 UTC (rev 2375)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-03-20 06:05:56 UTC (rev 2376)
@@ -1,3 +1,9 @@
+2005-03-19 Christian Hergert <christian.hergert at gmail.com>
+
+ * /Gui/Pads/FileScout/FileScout.cs: Change directories in the FileScout
+ to the base directory of a opened combine. Return to home directory
+ upon close of the combine.
+
2005-03-19 Lluis Sanchez Gual <lluis at novell.com>
* Commands/MenuItemBuilders.cs: Fixed Include/Compile and Deploy options.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/FileScout/FileScout.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/FileScout/FileScout.cs 2005-03-19 18:07:36 UTC (rev 2375)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/FileScout/FileScout.cs 2005-03-20 06:05:56 UTC (rev 2376)
@@ -50,6 +50,8 @@
{
fb.DirectoryChangedEvent += new DirectoryChangedEventHandler (OnDirChanged);
filelister.RowActivated += new Gtk.RowActivatedHandler (FileSelected);
+ Runtime.ProjectService.CombineOpened += new CombineEventHandler(OnCombineOpened);
+ Runtime.ProjectService.CombineClosed += new CombineEventHandler(OnCombineClosed);
Gtk.Frame treef = new Gtk.Frame ();
treef.Add (fb);
@@ -115,6 +117,21 @@
}
}
+ void OnCombineOpened(object sender, CombineEventArgs args)
+ {
+ try {
+ if (args.Combine.StartupEntry != null)
+ fb.CurrentDir = args.Combine.StartupEntry.BaseDirectory;
+ } catch {
+ fb.CurrentDir = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
+ }
+ }
+
+ void OnCombineClosed(object sender, CombineEventArgs args)
+ {
+ fb.CurrentDir = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
+ }
+
public event EventHandler TitleChanged;
public event EventHandler IconChanged;
}
More information about the Monodevelop-patches-list
mailing list