X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=NewBranch.vala;fp=NewBranch.vala;h=643489b24a0b7470fd3df880710e07e4a5c5fd50;hp=34662cd47fb31e56c053990a1e75cda7fe651a47;hb=424eebf8a96c11d28b3da871c3e1560638d3511f;hpb=2ac46b7e5e54b5382df0c55b865e47a9937e15f8 diff --git a/NewBranch.vala b/NewBranch.vala index 34662cd4..643489b2 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -97,7 +97,7 @@ public class NewBranch : Object } // user defined functions - public void show ( GitRepo repo, Gee.ArrayList queue ) + public void show ( GitRepo repo, Gee.ArrayList queue, string tid = "" ) { // this.el.set_gravity(Gdk.Gravity.NORTH); if (this.running) { // should not happen!! @@ -125,7 +125,7 @@ public class NewBranch : Object 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(); } @@ -536,7 +536,7 @@ public class NewBranch : Object } // user defined functions - public void loadTickets (string project_id) { + public void loadTickets (string project_id , string tid = "") { @@ -569,9 +569,9 @@ public class NewBranch : Object 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); + } } @@ -681,7 +681,8 @@ public class NewBranch : Object } //listeners - this.el.activate.connect( () => { + this.el.clicked.connect( () => { + GLib.debug("fire response = 1"); _this.el.response(1); }); }