Builder4/GtkView.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 19 Sep 2014 10:17:26 +0000 (18:17 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 19 Sep 2014 10:17:26 +0000 (18:17 +0800)
Builder4/GtkView.vala

Builder4/GtkView.bjs

index c87274b..9befb3c 100644 (file)
@@ -12,6 +12,7 @@
             "| void loadFile" : "(JsRender.JsRender file) \n{\n    \n \n        this.file = null;\n        \n        if (file.tree == null) {\n            return;\n        }\n        this.file = file;\n        if (this.lastObj != null) {\n            this.container.el.remove(this.lastObj);\n        }\n \n\tvar x = new JsRender.NodeToGtk(file.tree);\n        var obj = x.munge() as Gtk.Widget;\n        this.lastObj = null;\n\tif (obj == null) {\n        \treturn;\n\t}\n\tthis.lastObj = obj;\n        \n        this.container.el.add(obj);\n        obj.show_all();\n}\n ",
             "xtype" : "VPaned",
             "# JsRender.JsRender file" : "null",
+            "string id" : "",
             "$ xns" : "Gtk",
             "items" : [
                 {