src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 12 May 2015 09:45:52 +0000 (17:45 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 12 May 2015 09:45:52 +0000 (17:45 +0800)
src/Builder4/MainWindow.vala

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

index 672e93c..db82a93 100644 (file)
                  "items" : [
                   {
                    "listeners" : {
-                    "clicked" : " () => {\n    // create a new file in project..\n    \n    // what's the currently selected project...\n    var proj = _this.windowstate.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.windowstate.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    \n     _this.windowstate.file_details.show(\n       f, this.el\n    );\n    \n    \n    return  ;    \n}"
                    },
                    "* pack" : false,
                    "xtype" : "Button",
index 82bf1bc..a47216e 100644 (file)
@@ -1955,7 +1955,11 @@ public class Xcls_MainWindow : Object
                 
                 var f = JsRender.JsRender.factory(proj.xtype,  proj, "");
                 _this.project = proj;
-                _this.windowstate.new_file_dialog.show(f);
+                
+                 _this.windowstate.file_details.show(
+                   f, this.el
+                );
+                
                 
                 return  ;    
             });