From a4b065f460b1bd0bbe878d7e680d4c6992a9168c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 27 May 2015 16:38:57 +0800 Subject: [PATCH] src/Builder4/Editor.bjs src/Builder4/Editor.vala --- src/Builder4/Editor.bjs | 2 +- src/Builder4/Editor.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index a7cc888a4..d9b1f59b5 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -18,7 +18,7 @@ "# string key" : "\"\"", "* pack" : "add", "xtype" : "Box", - "| void show" : "(JsRender.JsRender file, JsRender.Node node, string ptype, string key)\n{\n this.file = file; \n this.ptype = \"\";\n this.key = \"\";\n this.node = null;\n\n \n if (file.xtype != \"PlainFile\") {\n \n this.ptype = ptype;\n this.key = key;\n this.node = node;\n string val = \"\";\n // find the text for the node..\n if (ptype == \"listener\") {\n val = node.listeners.get(key);\n \n } else {\n val = node.props.get(key);\n }\n this.view.load(val);\n\n \n } else {\n this.view.load( file.toSource() );\n\n }\n this.key_edit.el.text = key; \n \n}", + "| void show" : "(JsRender.JsRender file, JsRender.Node? node, string ptype, string key)\n{\n this.file = file; \n this.ptype = \"\";\n this.key = \"\";\n this.node = null;\n\n \n if (file.xtype != \"PlainFile\") {\n \n this.ptype = ptype;\n this.key = key;\n this.node = node;\n string val = \"\";\n // find the text for the node..\n if (ptype == \"listener\") {\n val = node.listeners.get(key);\n \n } else {\n val = node.props.get(key);\n }\n this.view.load(val);\n\n \n } else {\n this.view.load( file.toSource() );\n\n }\n this.key_edit.el.text = key; \n \n}", "# JsRender.JsRender file" : "null", "# bool pos" : false, "string id" : "Editor", diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index 576eadb47..93f01e76d 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -100,7 +100,7 @@ public class Editor : Object return true; } - public void show (JsRender.JsRender file, JsRender.Node node, string ptype, string key) + public void show (JsRender.JsRender file, JsRender.Node? node, string ptype, string key) { this.file = file; this.ptype = ""; -- 2.39.2