_this, [ _this, '']
);
});
-
-
- this.el.set_tooltip_column(8);
-
-
},
items : [
{
pack : "set_model",
init : function() {
XObject.prototype.init.call(this);
- this.el.set_column_types ( 9, [
+ this.el.set_column_types ( 8, [
GObject.TYPE_STRING, // repo
GObject.TYPE_STRING, // current branch
GObject.TYPE_STRING, // all branch
GObject.TYPE_BOOLEAN, // auto-commit
GObject.TYPE_BOOLEAN, // auto-push
GObject.TYPE_STRING, // repopath
- GObject.TYPE_STRING, // color highighling
- GObject.TYPE_STRING // uncommited. (tip)
+ GObject.TYPE_STRING // color highighling
] );
},
load : function()
col = '#ff00ff';
}
- this.el.set_value(ret.iter, 7, col );
- this.el.set_value(ret.iter, 8, tr[i].localChanges );
+ 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 = store.el.get_value(ret.iter, 6).value.get_string();
+ var repo = imports.Scm.Repo.Repo.get(path);
+ repo.autocommit(!value);
+
+
+
}
},
pack : "pack_start",
//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 = imports.Scm.Repo.Repo.get(path);
+ repo.autopush(!value);
+
}
},
pack : "pack_start",
},
{
xtype: Gtk.TreeViewColumn,
- resizable : true,
min_width : 200,
pack : "append_column",
+ resizable : true,
title : "Repo",
init : function() {
XObject.prototype.init.call(this);