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

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

index 89f84e2..34c40e7 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.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 0e0b0d0..e4894e6 100644 (file)
@@ -2111,8 +2111,8 @@ public class Xcls_MainWindow : Object
                 
                 
                 var f = JsRender.JsRender.factory(proj.xtype,  proj, "");
-                _this.project = proj;
-                _this.new_file_dialog.show(f);
+                this.project = proj;
+                this.windowstate.new_file_dialog.show(f);
                 
                 return  ;    
             });