projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clone.bjs
[gitlive]
/
Clone.vala
diff --git
a/Clone.vala
b/Clone.vala
index
7a3a53c
..
087a88e
100644
(file)
--- a/
Clone.vala
+++ b/
Clone.vala
@@
-14,10
+14,9
@@
public class Clone : Object
}
public Xcls_reposel reposel;
public Xcls_prcellrenderer prcellrenderer;
}
public Xcls_reposel reposel;
public Xcls_prcellrenderer prcellrenderer;
- public Xcls_
prmodel pr
model;
+ public Xcls_
repomodel repo
model;
// my vars (def)
// my vars (def)
- public GitRepo repo;
// ctor
public Clone()
// ctor
public Clone()
@@
-33,16
+32,16
@@
public class Clone : Object
this.el.position = Gtk.PositionType.RIGHT;
var child_0 = new Xcls_Box2( _this );
child_0.ref();
this.el.position = Gtk.PositionType.RIGHT;
var child_0 = new Xcls_Box2( _this );
child_0.ref();
- this.el.
pack_end ( child_0.el , false,false,0
);
+ this.el.
add ( child_0.el
);
}
// user defined functions
}
// user defined functions
- public void show (Gtk.Widget btn
, GitRepo repo
) {
+ public void show (Gtk.Widget btn) {
//console.log('show all');
this.el.set_modal(true);
this.el.set_relative_to(btn);
//console.log('show all');
this.el.set_modal(true);
this.el.set_relative_to(btn);
-
+ this.repomodel.loadRepos();
//this.el.set_position(Gtk.PositionType.RIGHT);
// window + header?
//this.el.set_position(Gtk.PositionType.RIGHT);
// window + header?
@@
-71,7
+70,7
@@
public class Clone : Object
this.el.vexpand = false;
var child_0 = new Xcls_reposel( _this );
child_0.ref();
this.el.vexpand = false;
var child_0 = new Xcls_reposel( _this );
child_0.ref();
- this.el.a
ttach_defaults ( child_0.el , 0,1,1,2
);
+ this.el.a
dd ( child_0.el
);
var child_1 = new Xcls_Button6( _this );
child_1.ref();
this.el.add ( child_1.el );
var child_1 = new Xcls_Button6( _this );
child_1.ref();
this.el.add ( child_1.el );
@@
-103,7
+102,7
@@
public class Clone : Object
var child_0 = new Xcls_prcellrenderer( _this );
child_0.ref();
this.el.pack_start ( child_0.el , true );
var child_0 = new Xcls_prcellrenderer( _this );
child_0.ref();
this.el.pack_start ( child_0.el , true );
- var child_1 = new Xcls_
pr
model( _this );
+ var child_1 = new Xcls_
repo
model( _this );
child_1.ref();
this.el.set_model ( child_1.el );
child_1.ref();
this.el.set_model ( child_1.el );
@@
-152,7
+151,7
@@
public class Clone : Object
// user defined functions
}
// user defined functions
}
- public class Xcls_
pr
model : Object
+ public class Xcls_
repo
model : Object
{
public Gtk.ListStore el;
private Clone _this;
{
public Gtk.ListStore el;
private Clone _this;
@@
-161,10
+160,10
@@
public class Clone : Object
// my vars (def)
// ctor
// my vars (def)
// ctor
- public Xcls_
pr
model(Clone _owner )
+ public Xcls_
repo
model(Clone _owner )
{
_this = _owner;
{
_this = _owner;
- _this.
pr
model = this;
+ _this.
repo
model = this;
this.el = new Gtk.ListStore( 2, typeof(string),typeof(string) );
// my vars (dec)
this.el = new Gtk.ListStore( 2, typeof(string),typeof(string) );
// my vars (dec)
@@
-173,7
+172,7
@@
public class Clone : Object
}
// user defined functions
}
// user defined functions
- public void load
Projects (string id
) {
+ public void load
Repos (
) {
var rt = RooTicket.singleton();
var gr = GitRepo.singleton();
var rt = RooTicket.singleton();
var gr = GitRepo.singleton();
@@
-195,16
+194,17
@@
public class Clone : Object
foreach(var newrepo in rt.repos) {
var has_repo = false;
foreach(var repo in gr.cache.values) {
foreach(var newrepo in rt.repos) {
var has_repo = false;
foreach(var repo in gr.cache.values) {
- if (newrepo.
name == repo.short
name) {
+ if (newrepo.
shortname == repo.
name) {
has_repo = true;
has_repo = true;
+ }
}
if (has_repo) {
continue;
}
el.append(out iter);
}
if (has_repo) {
continue;
}
el.append(out iter);
- el.set_value(iter, 0,
repo.
name);
- el.set_value(iter, 1, "%s : %s".printf(
repo.shortname,
repo.description) );
+ el.set_value(iter, 0,
newrepo.short
name);
+ el.set_value(iter, 1, "%s : %s".printf(
newrepo.shortname, new
repo.description) );
}
}