Ticket.bjs
[gitlive] / NewBranch.vala
index 556f952..166c8a6 100644 (file)
@@ -542,8 +542,11 @@ public class NewBranch : Object
             
             // 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;
         
@@ -598,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
@@ -678,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);
             });
         }
@@ -737,7 +746,7 @@ public class NewBranch : Object
             this.el.label = "Show tickets not assigned to me";
 
             //listeners
-            this.el.activate.connect( () => {
+            this.el.toggled.connect( () => {
                var project_id = _this.projectsel.selectedProjectId();
                _this.dbmodel.loadTickets(project_id);  
             });
@@ -767,7 +776,7 @@ public class NewBranch : Object
             this.el.label = "Show closed Tickets";
 
             //listeners
-            this.el.activate.connect( () => {
+            this.el.toggled.connect( () => {
                var project_id = _this.projectsel.selectedProjectId();
                _this.dbmodel.loadTickets(project_id);