RooTicket.vala
[gitlive] / NewBranch.vala
index 34662cd..6f3fe8c 100644 (file)
@@ -544,8 +544,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.ANY :  RooTicket.Who.ME,
+                                _this.btn_closed.el.active ? RooTicket.Status.ANY :  RooTicket.Status.ACTIVE
                         );
                 
             _this.ticketsel.loading = true;
@@ -601,6 +601,11 @@ public class NewBranch : Object
             // set gobject values
             this.el.expand = false;
             this.el.label = "New Ticket";
+
+            //listeners
+            this.el.clicked.connect( () => {
+               Ticket.singleton().show(_this.repo);
+            });
         }
 
         // user defined functions
@@ -681,7 +686,8 @@ public class NewBranch : Object
             }
 
             //listeners
-            this.el.activate.connect( () => {
+            this.el.clicked.connect( () => {
+               GLib.debug("fire response = 1");
                _this.el.response(1);
             });
         }