Author: mhutch
Date: 2007-06-20 18:25:56 -0400 (Wed, 20 Jun 2007)
New Revision: 80375

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
   
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.StandardHeader/NewHeaderTemplateDialog.cs
   
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.StandardHeader/StandardHeaderPanel.cs
Log:
2007-06-20  Michael Hutchinson  <[EMAIL PROTECTED]>

        * MonoDevelop.Ide.StandardHeader/NewHeaderTemplateDialog.cs,
          MonoDevelop.Ide.StandardHeader/StandardHeaderPanel.cs: Work around 
          compiler bug(?) in Mono 1.2.4 where anonymous delegate scopes don't 
          respect 'using' statements. Use explicit namespaces to avoid this.



Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog        2007-06-20 
22:16:47 UTC (rev 80374)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog        2007-06-20 
22:25:56 UTC (rev 80375)
@@ -1,3 +1,10 @@
+2007-06-20  Michael Hutchinson  <[EMAIL PROTECTED]>
+
+       * MonoDevelop.Ide.StandardHeader/NewHeaderTemplateDialog.cs,
+         MonoDevelop.Ide.StandardHeader/StandardHeaderPanel.cs: Work around 
+         compiler bug(?) in Mono 1.2.4 where anonymous delegate scopes don't 
+         respect 'using' statements. Use explicit namespaces to avoid this.
+
 2007-06-20  Mike Krüger <[EMAIL PROTECTED]> 
 
        Worked on the standard header feature.

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.StandardHeader/NewHeaderTemplateDialog.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.StandardHeader/NewHeaderTemplateDialog.cs
        2007-06-20 22:16:47 UTC (rev 80374)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.StandardHeader/NewHeaderTemplateDialog.cs
        2007-06-20 22:25:56 UTC (rev 80375)
@@ -46,7 +46,7 @@
                        this.Build();
                        buttonOk.Sensitive = false;
                        this.nameEntry.Changed += delegate {
-                               buttonOk.Sensitive = !String.IsNullOrEmpty 
(HeaderName);
+                               buttonOk.Sensitive = !string.IsNullOrEmpty 
(HeaderName);
                        };
                }
        }

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.StandardHeader/StandardHeaderPanel.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.StandardHeader/StandardHeaderPanel.cs
    2007-06-20 22:16:47 UTC (rev 80374)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.StandardHeader/StandardHeaderPanel.cs
    2007-06-20 22:25:56 UTC (rev 80375)
@@ -62,8 +62,8 @@
                        
                        this.addButton.Clicked += delegate {
                                NewHeaderTemplateDialog newHeaderTemplateDialog 
= new NewHeaderTemplateDialog ();
-                               ResponseType response = 
(ResponseType)newHeaderTemplateDialog.Run ();
-                               if (response == ResponseType.Ok) {
+                               Gtk.ResponseType response = 
(Gtk.ResponseType)newHeaderTemplateDialog.Run ();
+                               if (response == Gtk.ResponseType.Ok) {
                                        StandardHeaderService.AddTemplate 
(newHeaderTemplateDialog.HeaderName, this.headerTextview.Buffer.Text);
                                        templateCombobox.AppendText 
(newHeaderTemplateDialog.HeaderName);
                                }
@@ -73,7 +73,7 @@
                        this.removeButton.Clicked += delegate {
                                if (templateCombobox.Active < 0)
                                        return;
-                               if (Services.MessageService.AskQuestion 
(GettextCatalog.GetString ("Are you sure to remove the custom header template 
'{0}'?", templateCombobox.ActiveText), "MonoDevelop")) {
+                               if (Services.MessageService.AskQuestion 
(MonoDevelop.Core.GettextCatalog.GetString ("Are you sure to remove the custom 
header template '{0}'?", templateCombobox.ActiveText), "MonoDevelop")) {
                                        StandardHeaderService.RemoveTemplate 
(templateCombobox.ActiveText);
                                        templateCombobox.RemoveText 
(templateCombobox.Active);
                                }
@@ -82,9 +82,9 @@
                        templateCombobox.Changed += delegate {
                                if (templateCombobox.Active < 0)
                                        return;
-                               this.headerTextview.Buffer.Changed -= new 
EventHandler (ClearTemplateComboBox);
+                               this.headerTextview.Buffer.Changed -= new 
System.EventHandler (ClearTemplateComboBox);
                                this.addButton.Sensitive = false;
-                               foreach (KeyValuePair<string, string> header in 
StandardHeaderService.CustomTemplates) {
+                               foreach 
(System.Collections.Generic.KeyValuePair<string, string> header in 
StandardHeaderService.CustomTemplates) {
                                        if (header.Key == 
templateCombobox.ActiveText) {
                                                this.headerTextview.Buffer.Text 
= header.Value;
                                                this.removeButton.Sensitive = 
true;
@@ -92,14 +92,14 @@
                                        }
                                }
                                                        
-                               foreach (KeyValuePair<string, string> header in 
StandardHeaderService.HeaderTemplates) {
+                               foreach 
(System.Collections.Generic.KeyValuePair<string, string> header in 
StandardHeaderService.HeaderTemplates) {
                                        if (header.Key == 
templateCombobox.ActiveText) {
                                                this.headerTextview.Buffer.Text 
= header.Value;
                                                this.removeButton.Sensitive = 
false;
                                                break;
                                        }
                                }
-                               this.headerTextview.Buffer.Changed += new 
EventHandler (ClearTemplateComboBox);
+                               this.headerTextview.Buffer.Changed += new 
System.EventHandler (ClearTemplateComboBox);
                        };
                }
                

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

Reply via email to