xtype: Gtk.ListStore,
id : "reposStore",
pack : "set_model",
- pathToRepo : function(path) {
-
- var tr= this.repos;
-
-
- for(var i =0 ; i < tr.length; i++) {
- if (tr[i].repopath == path) {
- return tr;
- }
- }
- return false;
- },
init : function() {
XObject.prototype.init.call(this);
this.el.set_column_types ( 8, [
this.el.set_value(ret.iter, 7, col );
}
+ },
+ pathToRepo : function(path) {
+
+ var tr= this.repos;
+
+
+ for(var i =0 ; i < tr.length; i++) {
+ if (tr[i].repopath == path) {
+ return tr[i];
+ }
+ }
+ return false;
}
},
{
//print(JSON.stringify(value));
store.el.set_value(ret.iter,4, !value);
- var path = this.el.set_value(ret.iter, 6).value.get_string();
- var repo = store.pathToRepo(path);
+ var path = store.el.get_value(ret.iter, 6).value.get_string();
+ var repo = imports.Scm.Repo.Repo.get(path);
repo.autocommit(!value);
//print(JSON.stringify(value));
store.el.set_value(ret.iter,5, !value);
var path = store.el.get_value(ret.iter, 6).value.get_string();
- var repo = store.pathToRepo(path);
+ var repo = imports.Scm.Repo.Repo.get(path);
repo.autopush(!value);
}