Builder4/Editor.bjs
authorAlan Knowles <alan@akbkhome.com>
Wed, 21 May 2014 15:03:32 +0000 (23:03 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 21 May 2014 15:03:32 +0000 (23:03 +0800)
Builder4/Editor.js
Builder4/Editor.vala

Builder4/Editor.bjs
Builder4/Editor.js
Builder4/Editor.vala

index c11cfd1..ce987f9 100644 (file)
@@ -9,7 +9,7 @@
             "listeners": {
                 "delete_event": "function (self, event) {\n    if (!this.get('/Editor.RightEditor').save()) {\n        // no hiding with errors.\n        return true;\n    }\n    this.el.hide();\n    this.get('/Editor').activePath = false;\n    return true;\n}\n/*--\n\n(event) => {\n    if (!Editor.RightEditor.save()) {\n        // no hiding with errors.\n        return true;\n    }\n    _this.el.hide();\n    _this.active_path = \"\";\n    return true;\n}\n\n*/",
                 "configure_event": "function (self, object) {\n    this.pos = this.el.get_position();\n\n    return false;\n}\n/*--\n (object) => {\n    _this.pos = true;\n    this.el.get_position(out _this.pos_root_x, out _this.pos_root_y);\n\n\n    return false;\n}\n*/\n",
-                "show": "function (self) {\n    if (this.pos) {\n        this.el.set_uposition(this.pos.root_x,this.pos.root_y);\n    }\n}\n/*--\n () => {\n    if (this.pos) {\n        _this.move(this.pos_root_x,this.pos_root_y);\n    }\n}\n\n*/"
+                "show": "function (self) {\n    if (this.pos) {\n        this.el.set_uposition(this.pos.root_x,this.pos.root_y);\n    }\n}\n/*--\n () => {\n    if (this.pos) {\n        _this.el.move(this.pos_root_x,this.pos_root_y);\n    }\n}\n\n*/"
             },
             ".activeEditor": "string:\"\"",
             ".active_path": "string:\"\"",
index 80c726b..0beb109 100644 (file)
@@ -56,7 +56,7 @@ Editor=new XObject({
         /*--
          () => {
             if (this.pos) {
-                _this.move(this.pos_root_x,this.pos_root_y);
+                _this.el.move(this.pos_root_x,this.pos_root_y);
             }
         }
         
index 5a51d61..ba6273d 100644 (file)
@@ -74,7 +74,7 @@ public class Xcls_Editor
         } );
         this.el.show.connect(  () => {
             if (this.pos) {
-                _this.move(this.pos_root_x,this.pos_root_y);
+                _this.el.move(this.pos_root_x,this.pos_root_y);
             }
         } );
     }