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

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