[vala] Add mandatory xmlns attributes



commit 977a6de5cad7a073418a4a72efd203f9839e6706
Author: Didier 'Ptitjes <ptitjes free fr>
Date:   Fri Mar 20 14:00:34 2009 +0100

    Add mandatory xmlns attributes
    Signed-off-by: Didier 'Ptitjes <ptitjes free fr>
---
 gobject/valagirwriter.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gobject/valagirwriter.vala b/gobject/valagirwriter.vala
index 06d70d0..ad7582c 100644
--- a/gobject/valagirwriter.vala
+++ b/gobject/valagirwriter.vala
@@ -53,7 +53,11 @@ public class Vala.GIRWriter : CodeVisitor {
 
 		stream.printf ("<?xml version=\"1.0\"?>\n");
 
-		stream.printf ("<repository version=\"1.0\">\n");
+		stream.printf ("<repository version=\"1.0\"");
+		stream.printf (" xmlns=\"http://www.gtk.org/introspection/core/1.0\"";);
+		stream.printf (" xmlns:c=\"http://www.gtk.org/introspection/c/1.0\"";);
+		stream.printf (" xmlns:glib=\"http://www.gtk.org/introspection/glib/1.0\"";);
+		stream.printf (">\n");
 		indent++;
 
 		context.accept (this);



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