[dconf] editor: Don't warn about comments in the schemas



commit 15555e33ded597dd7323da642d12da3ec5711d93
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri May 4 15:53:19 2012 +1200

    editor: Don't warn about comments in the schemas

 editor/dconf-schema.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/editor/dconf-schema.vala b/editor/dconf-schema.vala
index dc8e60a..e1e8691 100644
--- a/editor/dconf-schema.vala
+++ b/editor/dconf-schema.vala
@@ -397,6 +397,9 @@ public class SchemaList
                 var f = new SchemaFlags.from_xml(this, node);
                 flags.insert(f.id, f);
             }
+            else if (node->type == Xml.ElementType.COMMENT_NODE)
+            {
+            }
             else if (node->type != Xml.ElementType.TEXT_NODE)
                 warning ("Unknown tag <%s>", node->name);
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]