RooTicket.vala
[gitlive] / NewBranch.vala
index e516aa5..6f3fe8c 100644 (file)
@@ -97,7 +97,7 @@ public class NewBranch : Object
     }
 
     // user defined functions
-    public   void show ( GitRepo repo, Gee.ArrayList<GitMonitorQueue> queue, string tid = "" ) 
+    public   void show ( GitRepo repo, Gee.ArrayList<GitMonitorQueue> queue ) 
     {
          // 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, tid);
+       _this.dbmodel.loadTickets(curproj == null ? "": curproj.id);
        this.el.run();
     
     }
@@ -536,7 +536,7 @@ public class NewBranch : Object
         }
 
         // user defined functions
-        public void loadTickets (string project_id , string tid = "") {
+        public void loadTickets (string project_id) {
         
         
             
@@ -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;
@@ -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 (ticket.id == tid) {
-                           _this.ticketsel.el.set_active_iter(iter);
-                }
+                //if (data.get(i) == cur) {
+                 //   _this.build_module.el.set_active_iter(iter);
+               // }
                 
             }
             
@@ -604,9 +604,7 @@ public class NewBranch : Object
 
             //listeners
             this.el.clicked.connect( () => {
-                _this.el.response(-1);
                Ticket.singleton().show(_this.repo);
-            
             });
         }