src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 12:51:07 +0000 (20:51 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 12:51:07 +0000 (20:51 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index 28e198a..f148e2f 100644 (file)
@@ -20,6 +20,7 @@
    "# string key" : "\"\"",
    "* pack" : "add",
    "xtype" : "Box",
+   "Gtk.SourceSearchContext searchcontext" : "",
    "|   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,
@@ -27,7 +28,6 @@
    "# bool dirty" : false,
    "$ xns" : "Gtk",
    "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
-   "string XXXX" : "",
    "@ void save" : "()",
    "$ homogeneous" : false,
    "# JsRender.Node node" : "null",
index 2608f9b..40e7e31 100644 (file)
@@ -25,10 +25,10 @@ public class Editor : Object
     public int pos_root_y;
     public string ptype;
     public string key;
+    public Gtk.SourceSearchContext searchcontext;
     public JsRender.JsRender file;
     public bool pos;
     public bool dirty;
-    public string XXXX;
     public signal void save ();
     public JsRender.Node node;