Author: lluis Date: 2008-01-21 12:23:50 -0500 (Mon, 21 Jan 2008) New Revision: 93420
Modified: trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/ChangeLog trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs Log: * MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs: Make sure file status change events are always fired in the gui thread. Modified: trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/ChangeLog =================================================================== --- trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/ChangeLog 2008-01-21 17:15:38 UTC (rev 93419) +++ trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/ChangeLog 2008-01-21 17:23:50 UTC (rev 93420) @@ -1,5 +1,10 @@ 2008-01-21 Lluis Sanchez Gual <[EMAIL PROTECTED]> + * MonoDevelop.VersionControl/VersionControlService.cs: Make sure file status + change events are always fired in the gui thread. + +2008-01-21 Lluis Sanchez Gual <[EMAIL PROTECTED]> + * MonoDevelop.VersionControl/RevertCommand.cs: Notify file changes through the FileService. Modified: trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs =================================================================== --- trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs 2008-01-21 17:15:38 UTC (rev 93419) +++ trunk/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs 2008-01-21 17:23:50 UTC (rev 93420) @@ -9,6 +9,7 @@ using MonoDevelop.Ide.Gui; using MonoDevelop.Core; +using MonoDevelop.Core.Gui; using MonoDevelop.Projects; using MonoDevelop.Projects.Serialization; using Mono.Addins; @@ -333,8 +334,14 @@ internal static void NotifyFileStatusChanged (Repository repo, string localPath, bool isDirectory) { - if (FileStatusChanged != null) - FileStatusChanged (null, new FileUpdateEventArgs (repo, localPath, isDirectory)); + if (!DispatchService.IsGuiThread) + Gtk.Application.Invoke (delegate { + NotifyFileStatusChanged (repo, localPath, isDirectory); + }); + else { + if (FileStatusChanged != null) + FileStatusChanged (null, new FileUpdateEventArgs (repo, localPath, isDirectory)); + } } //static void OnFileChanged (object s, ProjectFileEventArgs args) _______________________________________________ Mono-patches maillist - Mono-patches@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-patches