X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=NewBranch.vala;h=c9bff826a4caa8360aae952afaf7682bb1e837ae;hp=c25a2dbe6d3ec86d852151991fd50cd0eeba68ee;hb=ce5337e4ad3400605415fb497dbbced99ed35860;hpb=bf8f29a508f7f49687e515067353866d70751c85 diff --git a/NewBranch.vala b/NewBranch.vala index c25a2dbe..c9bff826 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -110,8 +110,7 @@ public class NewBranch : Object this.repo = repo; - - + this.el.move((Gdk.Screen.width() / 2)- 250 ,0); this.el.set_default_size( 500,200); // not sure why it grows.. @@ -126,6 +125,12 @@ public class NewBranch : Object _this.prmodel.loadProjects(curproj == null ? "" : curproj.id); _this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid); + if (tid != "") { + var name = RooTicket.singleton().usernameLocal(); + var ticket = RooTicket.singleton().getById(tid); + _this.name.el.set_text("wip_%s_T%s_%s".printf(name,ticket.id, ticket.summaryToBranchName())); + } + this.el.run(); } @@ -544,8 +549,8 @@ public class NewBranch : Object 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.btn_not_me.el.active ? RooTicket.Who.ANYBODY : RooTicket.Who.ME, + _this.btn_closed.el.active ? RooTicket.Status.ALL : RooTicket.Status.ACTIVE ); _this.ticketsel.loading = true; @@ -604,6 +609,7 @@ public class NewBranch : Object //listeners this.el.clicked.connect( () => { + _this.el.response(-1); Ticket.singleton().show(_this.repo); });