Sample/EditProject.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 09:01:58 +0000 (17:01 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 09:01:58 +0000 (17:01 +0800)
Sample/EditProject.js

index 671afdf..48d5330 100644 (file)
@@ -58,7 +58,8 @@ EditProject=new XObject({
                 
                 this.project.name  = GLib.basename(fn);
                 this.project.xtype  = this.get('xtype').getValue();
-                this.project.paths = {  fn :  'dir' };
+                this.project.paths = {};
+                this.project.paths[fn] =  'dir' ;
                 
                 var pr = imports.Builder.Provider.ProjectManager.ProjectManager.update(this.project);