Author: lluis
Date: 2008-01-17 11:01:25 -0500 (Thu, 17 Jan 2008)
New Revision: 93167

Modified:
   trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog
   
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/OutputProgressMonitor.cs
   
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs
Log:
* MonoDevelop.Ide.Gui/OutputProgressMonitor.cs: Avoid going through the
  gui thread to get some simple property values. Fixes bug #354061.
* MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs: Add
  missing length check.

Modified: trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog   2008-01-17 
15:34:56 UTC (rev 93166)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Ide/ChangeLog   2008-01-17 
16:01:25 UTC (rev 93167)
@@ -1,3 +1,10 @@
+2008-01-17  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Ide.Gui/OutputProgressMonitor.cs: Avoid going through the 
gui
+         thread to get some simple property values. Fixes bug #354061.
+       * MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs: Add 
missing
+         length check.
+
 2008-01-16  Michael Hutchinson <[EMAIL PROTECTED]> 
 
        * MonoDevelop.Ide.Gui/IdeStartup.cs: Remove dead code.

Modified: 
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/OutputProgressMonitor.cs
===================================================================
--- 
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/OutputProgressMonitor.cs
        2008-01-17 15:34:56 UTC (rev 93166)
+++ 
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/OutputProgressMonitor.cs
        2008-01-17 16:01:25 UTC (rev 93167)
@@ -116,23 +116,29 @@
                }
                
                TextReader IConsole.In {
+                       [FreeDispatch]
                        get { return new StringReader (""); }
                }
                
                TextWriter IConsole.Out {
+                       [FreeDispatch]
                        get { return logger; }
                }
                
                TextWriter IConsole.Error {
+                       [FreeDispatch]
                        get { return logger; }
                } 
                
                bool IConsole.CloseOnDispose {
+                       [FreeDispatch]
                        get { return false; }
                }
                
                event EventHandler IConsole.CancelRequested {
+                       [FreeDispatch]
                        add { stopRequested += value; }
+                       [FreeDispatch]
                        remove { stopRequested -= value; }
                }
        }

Modified: 
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs
===================================================================
--- 
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs
  2008-01-17 15:34:56 UTC (rev 93166)
+++ 
trunk/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs
  2008-01-17 16:01:25 UTC (rev 93167)
@@ -272,7 +272,7 @@
                        
                        if (fileName != null) {
                                string fileDirectory = Path.GetDirectoryName 
(fileName);
-                               if (project != null && project.BaseDirectory != 
null && fileDirectory.Substring (0, project.BaseDirectory.Length) == 
fileDirectory )
+                               if (project != null && project.BaseDirectory != 
null && fileDirectory.Length >= project.BaseDirectory.Length && 
fileDirectory.Substring (0, project.BaseDirectory.Length) == fileDirectory )
                                        tags ["ProjectRelativeDirectory"] = 
fileDirectory.Substring (project.BaseDirectory.Length);
                                else
                                        tags ["ProjectRelativeDirectory"] = 
fileDirectory;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to