Author: mhutch
Date: 2007-03-06 22:27:51 -0500 (Tue, 06 Mar 2007)
New Revision: 73866

Modified:
   
trunk/monodevelop/Extras/AspNetEdit/AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs
   
trunk/monodevelop/Extras/AspNetEdit/AspNetEdit.Integration/MonoDevelopProxy.cs
   trunk/monodevelop/Extras/AspNetEdit/ChangeLog
Log:
2007-03-07  Michael Hutchinson <[EMAIL PROTECTED]> 

        * AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs:
          Use lowercase comparison for event prefix.
          
        * AspNetEdit.Integration/MonoDevelopProxy.cs: Ensure GUI thread safety
          for event binding.



Modified: 
trunk/monodevelop/Extras/AspNetEdit/AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs
===================================================================
--- 
trunk/monodevelop/Extras/AspNetEdit/AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs
     2007-03-07 02:12:17 UTC (rev 73865)
+++ 
trunk/monodevelop/Extras/AspNetEdit/AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs
     2007-03-07 03:27:51 UTC (rev 73866)
@@ -75,7 +75,7 @@
                                PropertyDescriptor pd = pdc.Find (str[0], true);
 
                                //if property not found, try events
-                               if (str.Length == 1 && pd == null && 
CultureInfo.InvariantCulture.CompareInfo.IsPrefix (str[0], "On")) {
+                               if (str.Length == 1 && pd == null && 
CultureInfo.InvariantCulture.CompareInfo.IsPrefix (str[0].ToLower(), "on")) {
                                        IEventBindingService iebs = 
(IEventBindingService) DesignerHost.GetService (typeof (IEventBindingService));
                                        if (iebs == null)
                                                throw new Exception ("Could not 
obtain IEventBindingService from host");

Modified: 
trunk/monodevelop/Extras/AspNetEdit/AspNetEdit.Integration/MonoDevelopProxy.cs
===================================================================
--- 
trunk/monodevelop/Extras/AspNetEdit/AspNetEdit.Integration/MonoDevelopProxy.cs  
    2007-03-07 02:12:17 UTC (rev 73865)
+++ 
trunk/monodevelop/Extras/AspNetEdit/AspNetEdit.Integration/MonoDevelopProxy.cs  
    2007-03-07 03:27:51 UTC (rev 73866)
@@ -106,7 +106,10 @@
                        if (codeBehindClass == null)
                                return false;
                        
-                       BindingService.CreateAndShowMember (codeBehindClass, 
method);
+                       Gtk.Application.Invoke ( delegate {
+                               BindingService.CreateAndShowMember 
(codeBehindClass, method);
+                       });
+                       
                        return true;
                }
                
@@ -117,7 +120,8 @@
                        
                        Gtk.Application.Invoke ( delegate {
                                IdeApp.Workbench.OpenDocument 
(codeBehindClass.Region.FileName, lineNumber, 1, true);
-                       });     
+                       });
+                       
                        return true;
                }
                

Modified: trunk/monodevelop/Extras/AspNetEdit/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/AspNetEdit/ChangeLog       2007-03-07 02:12:17 UTC 
(rev 73865)
+++ trunk/monodevelop/Extras/AspNetEdit/ChangeLog       2007-03-07 03:27:51 UTC 
(rev 73866)
@@ -1,3 +1,11 @@
+2007-03-07  Michael Hutchinson <[EMAIL PROTECTED]> 
+
+       * AspNetEdit.Editor.Persistence/ServerControlParsingObject.cs:
+         Use lowercase comparison for event prefix.
+         
+       * AspNetEdit.Integration/MonoDevelopProxy.cs: Ensure GUI thread safety
+         for event binding.
+
 2007-03-07  Michael Hutchinson <[EMAIL PROTECTED]>
 
        * chrome/Makefile.am: The install tasks should depend on the files 

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

Reply via email to