diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-02-22 15:06:08 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-02-22 15:06:08 +0300 |
commit | 7a75c3f66a81971d081b79d645e6a424591294a2 (patch) | |
tree | 8ad668020d3e4bc4859c1eb69decfcf7ca70be91 | |
parent | 11edf5105a22fbddd8f162e26b8f2be9fc02256b (diff) |
Fix Header element insertion when saving. Fix documentation.
-rw-r--r-- | Mono.Addins/Mono.Addins.Description/AddinDescription.cs | 2 | ||||
-rw-r--r-- | Mono.Addins/Mono.Addins/NodeAttributeAttribute.cs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Mono.Addins/Mono.Addins.Description/AddinDescription.cs b/Mono.Addins/Mono.Addins.Description/AddinDescription.cs index 70deaa1..9d0e872 100644 --- a/Mono.Addins/Mono.Addins.Description/AddinDescription.cs +++ b/Mono.Addins/Mono.Addins.Description/AddinDescription.cs @@ -827,7 +827,7 @@ namespace Mono.Addins.Description if (oldHeader == null) { oldHeader = elem.OwnerDocument.CreateElement ("Header"); if (elem.FirstChild != null) - elem.InsertBefore (elem, elem.FirstChild); + elem.InsertBefore (oldHeader, elem.FirstChild); else elem.AppendChild (oldHeader); } diff --git a/Mono.Addins/Mono.Addins/NodeAttributeAttribute.cs b/Mono.Addins/Mono.Addins/NodeAttributeAttribute.cs index c45d79f..e6fe775 100644 --- a/Mono.Addins/Mono.Addins/NodeAttributeAttribute.cs +++ b/Mono.Addins/Mono.Addins/NodeAttributeAttribute.cs @@ -259,8 +259,7 @@ namespace Mono.Addins /// </summary> /// <remarks> /// Allows specifying the type of the content of a string attribute. - /// If an attribute is of type File, the referenced file will be - /// automatically imported in add-ins using it. + /// This value is for documentation purposes only. /// </remarks> public ContentType ContentType { get; set; } } |