src/Builder4/MainWindow.vala
"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",
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 ;
});