Author: lluis
Date: 2007-12-14 08:03:36 -0500 (Fri, 14 Dec 2007)
New Revision: 91282

Modified:
   trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog
   trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs
Log:
* WelcomePageView.cs: Make sure the RecentProjectChanged event is
  handled in the GUI thread.

Modified: trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog     2007-12-14 
12:58:00 UTC (rev 91281)
+++ trunk/monodevelop/main/src/addins/WelcomePage/ChangeLog     2007-12-14 
13:03:36 UTC (rev 91282)
@@ -1,5 +1,10 @@
 2007-12-14  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
+       * WelcomePageView.cs: Make sure the RecentProjectChanged event is 
handled in
+         the GUI thread.
+
+2007-12-14  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
        * WelcomePage.mdp: Updated project files. The order of extended 
properties
          won't change anymore.
 

Modified: trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs
===================================================================
--- trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs    
2007-12-14 12:58:00 UTC (rev 91281)
+++ trunk/monodevelop/main/src/addins/WelcomePage/WelcomePageView.cs    
2007-12-14 13:03:36 UTC (rev 91282)
@@ -46,6 +46,7 @@
        {
                string datadir;
                bool loadingProject;
+               EventHandler recentChangesHandler;
                
                public override string StockIconId {
                        get { return Gtk.Stock.Home; }
@@ -65,7 +66,8 @@
                        if (PlatformID.Unix != Environment.OSVersion.Platform)
                                datadir = datadir.Replace("\\","/");
 
-                       IdeApp.Workbench.RecentOpen.RecentProjectChanged += 
RecentChangesHandler;
+                       recentChangesHandler = (EventHandler) 
DispatchService.GuiDispatch (new EventHandler (RecentChangesHandler));
+                       IdeApp.Workbench.RecentOpen.RecentProjectChanged += 
recentChangesHandler;
                }
                
                public void HandleLinkAction (string uri)
@@ -144,7 +146,7 @@
 
                public override void Dispose ()
                {
-                       IdeApp.Workbench.RecentOpen.RecentProjectChanged -= 
RecentChangesHandler;
+                       IdeApp.Workbench.RecentOpen.RecentProjectChanged -= 
recentChangesHandler;
                }
                
                public static string TimeSinceEdited (DateTime prjtime)

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

Reply via email to