}
// user defined functions
- public void show ( GitRepo repo, Gee.ArrayList<GitMonitorQueue> queue )
+ public void show ( GitRepo repo, Gee.ArrayList<GitMonitorQueue> queue, string tid = "" )
{
// this.el.set_gravity(Gdk.Gravity.NORTH);
if (this.running) { // should not happen!!
var curproj = RooTicket.singleton().getProjectByRepo(this.repo);
_this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
- _this.dbmodel.loadTickets(curproj == null ? "": curproj.id);
+ _this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
this.el.run();
}
}
// user defined functions
- public void loadTickets (string project_id) {
+ public void loadTickets (string project_id , string tid = "") {
// fixme .. get project id from selection..
- RooTicket.singleton().loadTickets(project_id);
-
+ RooTicket.singleton().loadTickets(
+ project_id,
+ _this.btn_not_me.el.active ? RooTicket.NotMe.TRUE : RooTicket.NotMe.FALSE,
+ _this.btn_closed.el.active ? RooTicket.Closed.TRUE : RooTicket.Closed.FALSE
+ );
_this.ticketsel.loading = true;
el.set_value(iter, 0, ticket.id);
el.set_value(iter, 1, "#%s [%s] %s".printf( ticket.id, ticket.project_id_name , ticket.summary));
- //if (data.get(i) == cur) {
- // _this.build_module.el.set_active_iter(iter);
- // }
+ if (ticket.id == tid) {
+ _this.ticketsel.el.set_active_iter(iter);
+ }
}
}
//listeners
- this.el.activate.connect( () => {
+ this.el.clicked.connect( () => {
+ GLib.debug("fire response = 1");
_this.el.response(1);
});
}