X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=NewBranch.vala;h=4342b5b28565e0ad0f87b3f4b7acc0b4ced174dc;hp=643489b24a0b7470fd3df880710e07e4a5c5fd50;hb=35449c3a6ed4c08cf09abae2ab8a582acf7080c3;hpb=424eebf8a96c11d28b3da871c3e1560638d3511f diff --git a/NewBranch.vala b/NewBranch.vala index 643489b2..4342b5b2 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.. @@ -544,8 +543,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; @@ -601,6 +600,13 @@ public class NewBranch : Object // set gobject values this.el.expand = false; this.el.label = "New Ticket"; + + //listeners + this.el.clicked.connect( () => { + _this.el.response(-1); + Ticket.singleton().show(_this.repo); + + }); } // user defined functions