From 212fb3c89b41304b5ed3005813468d9fff99158d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 2 Jun 2015 20:51:16 +0800 Subject: [PATCH] src/Builder4/Editor.bjs src/Builder4/Editor.vala --- src/Builder4/Editor.bjs | 2 +- src/Builder4/Editor.vala | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index f148e2f8f..9aea7f278 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -20,7 +20,7 @@ "# string key" : "\"\"", "* pack" : "add", "xtype" : "Box", - "Gtk.SourceSearchContext searchcontext" : "", + "Gtk.SourceSearchContext searchcontext" : "null", "| 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 this.key_edit.el.show();\n this.key_edit.el.text = key; \n \n } else {\n this.view.load( file.toSource() );\n this.key_edit.el.hide();\n }\n\n \n}", "# JsRender.JsRender file" : "null", "# bool pos" : false, diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index 40e7e3148..eeadbcd67 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -43,6 +43,7 @@ public class Editor : Object this.activeEditor = ""; this.ptype = ""; this.key = ""; + this.searchcontext = null; this.file = null; this.pos = false; this.dirty = false; -- 2.39.2