src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 15 May 2015 09:30:18 +0000 (17:30 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 May 2015 09:30:18 +0000 (17:30 +0800)
src/Builder4/Editor.vala

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

index e7c9d9a..4e2d46a 100644 (file)
@@ -8,6 +8,7 @@
  "build_module" : "builder",
  "items" : [
   {
+   "# Xcls_MainWindow window" : "null",
    "# string activeEditor" : "\"\"",
    "|   bool saveContents" : "  ()  {\n    \n    \n    \n    \n    \n    \n    \n   \n     \n     var str = _this.buffer.toString();\n     \n      \n     \n     \n     if (!_this.buffer.checkSyntax()) {\n         print(\"check syntax failed\");\n         //this.get('/StandardErrorDialog').show(\"Fix errors in code and save..\"); \n         //return false;\n     }\n     \n     // LeftPanel.model.changed(  str , false);\n     _this.dirty = false;\n     _this.save_button.el.sensitive = false;\n     \n     \n        \n     \n    // find the text for the node..\n    if (ptype == \"listener\") {\n        this.node.listeners.set(key,str);\n    \n    } else {\n         this.node.props.set(key,str);\n    }\n\n     \n    \n    // call the signal..\n    this.save();\n    \n    return true;\n\n} ",
    "# int pos_root_x" : "",
@@ -22,7 +23,6 @@
    "string id" : "Editor",
    "# bool dirty" : false,
    "$ xns" : "Gtk",
-   "# Xcls_MainWindow" : "null",
    "@ void save" : "()",
    "$ homogeneous" : false,
    "# JsRender.Node node" : "null",
index aaf7651..2a6dccf 100644 (file)
@@ -19,6 +19,7 @@ public class Editor : Object
     public Xcls_buffer buffer;
 
         // my vars (def)
+    public Xcls_MainWindow window;
     public string activeEditor;
     public int pos_root_x;
     public int pos_root_y;
@@ -37,6 +38,7 @@ public class Editor : Object
         this.el = new Gtk.VBox( false, 0 );
 
         // my vars (dec)
+        this.window = null;
         this.activeEditor = "";
         this.ptype = "";
         this.key = "";