From 9bfbb7411b710e6b9ac419751e400586e3598179 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 19 May 2015 13:48:50 +0800 Subject: [PATCH] src/JsRender/NodeToVala.vala --- src/JsRender/NodeToVala.vala | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/JsRender/NodeToVala.vala b/src/JsRender/NodeToVala.vala index d87a3e798..6b897389a 100644 --- a/src/JsRender/NodeToVala.vala +++ b/src/JsRender/NodeToVala.vala @@ -203,12 +203,12 @@ public class JsRender.NodeToVala : Object { if (this.depth > 0) { return; } - // Global Vars.. + // Global Vars..??? when did this get removed..? //this.ret += this.inpad + "public static " + this.xcls + " " + this.node.xvala_id+ ";\n\n"; - this.addLine("%sstatic %s _%s;".printf(this.inpad, this.xcls, this.node.xvala_id)); + this.addLine(this.inpad + "static " + this.xcls + " _" + this.node.xvala_id+ ";"); this.addLine(); - //this.ret += this.inpad + "static " + this.xcls + " _" + this.node.xvala_id+ ";\n\n"; + } @@ -563,7 +563,9 @@ public class JsRender.NodeToVala : Object { return; } // what are the properties of this class??? - this.ret += "\n" + this.ipad + "// set gobject values\n"; + this.addLine(); + this.addLine(this.ipad + "// set gobject values"); + var iter = cls.props.map_iterator(); while (iter.next()) { @@ -602,7 +604,7 @@ public class JsRender.NodeToVala : Object { } - this.ret += "%sthis.el.%s = %s;\n".printf(ipad,p,v); // // %s, iter.get_value().type); + this.addLine("%sthis.el.%s = %s;".printf(ipad,p,v)); // // %s, iter.get_value().type); // got a property.. -- 2.39.2