src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 27 Feb 2015 01:18:37 +0000 (09:18 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 27 Feb 2015 01:18:37 +0000 (09:18 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index 1b8a795..ffac0f8 100644 (file)
                  "items" : [
                   {
                    "listeners" : {
-                    "clicked" : " () => {\n    // create a new file in project..\n    \n    // what's the currently selected project...\n    var proj = _this.left_projects.getSelectedProject();\n    \n    if (proj == null) {\n        return  ;\n    }\n    \n    \n    \n    var f = JsRender.JsRender.factory(proj.xtype,  proj, \"\");\n    this.project = proj;\n    this.windowstate.new_file_dialog.show(f);\n    \n    return  ;    \n}"
+                    "clicked" : " () => {\n    // create a new file in project..\n    \n    // what's the currently selected project...\n    var proj = _this.left_projects.getSelectedProject();\n    \n    if (proj == null) {\n        return  ;\n    }\n    \n    \n    \n    var f = JsRender.JsRender.factory(proj.xtype,  proj, \"\");\n    _this.project = proj;\n    _this.windowstate.new_file_dialog.show(f);\n    \n    return  ;    \n}"
                    },
                    "* pack" : false,
                    "xtype" : "Button",
index f5738f1..b297d33 100644 (file)
@@ -2111,8 +2111,8 @@ public class Xcls_MainWindow : Object
                 
                 
                 var f = JsRender.JsRender.factory(proj.xtype,  proj, "");
-                this.project = proj;
-                this.windowstate.new_file_dialog.show(f);
+                _this.project = proj;
+                _this.windowstate.new_file_dialog.show(f);
                 
                 return  ;    
             });