Sample/EditProject.js
[app.Builder.js] / Sample / EditProject.js
index 671afdf..b72ccd3 100644 (file)
@@ -7,6 +7,8 @@ GObject = imports.gi.GObject;
 GtkSource = imports.gi.GtkSource;
 WebKit = imports.gi.WebKit;
 Vte = imports.gi.Vte;
+GtkClutter = imports.gi.GtkClutter;
+Gdl = imports.gi.Gdl;
 console = imports.console;
 XObject = imports.XObject.XObject;
 EditProject=new XObject({
@@ -33,11 +35,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 +60,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);