tools
[app.Builder.js] / Sample / EditProject.js
index 9fd3c18..456e1e5 100644 (file)
@@ -33,11 +33,11 @@ EditProject=new XObject({
         this.success = c.success;
     },
     listeners : {
-        "destroy_event":function (self, event) {
+        destroy_event : function (self, event) {
              this.el.hide();
                         return false;
         },
-        "response":function (self, id) {
+        response : function (self, id) {
          if (id < 1) {
                     this.el.hide();
                     return;
@@ -58,7 +58,8 @@ EditProject=new XObject({
                 
                 this.project.name  = GLib.basename(fn);
                 this.project.xtype  = this.get('xtype').getValue();
-                this.project.paths = [ fn ];
+                this.project.paths = {};
+                this.project.paths[fn] =  'dir' ;
                 
                 var pr = imports.Builder.Provider.ProjectManager.ProjectManager.update(this.project);
                 
@@ -160,7 +161,9 @@ EditProject=new XObject({
                 {
                     xtype: Gtk.FileChooserWidget,
                     pack : "pack_end,true,true,5",
-                    action : Gtk.FileChooserAction.SELECT_FOLDER
+                    action : Gtk.FileChooserAction.SELECT_FOLDER,
+                    id : "dir",
+                    select_multiple : false
                 }
             ]
         },