});
// shouild set path..
*/
+
+
this.el.show_all();
+ this.get('/ok_button').el.set_sensitive(false);
// block until we return.
- this.el.run();
-
- print(JSON.serialize(this.get('bug').getValue()));
+ var run_ret = this.el.run();
+ if (run_ret < 1 ) {
+ return false;
+ }
+ print("RUN RETURN : " + run_ret);
+ //print(JSON.stringify(this.get('bug').getValue()));
+ return this.get('bug').getValue();
//this.success = c.success;
},
items : [
changed : function (self) {
var d = this.getValue();
this.get('/view').load(d.description);
+ this.get('/ok_button').el.set_sensitive(true);
}
},
id : "bug",
},
{
xtype: Gtk.Button,
- pack : "add_action_widget,1",
- label : "OK"
+ label : "Cancel",
+ pack : "add_action_widget,0"
},
{
xtype: Gtk.Button,
- pack : "add_action_widget,0",
- label : "Cancel"
+ id : "ok_button",
+ label : "OK",
+ pack : "add_action_widget,1"
}
]
});