Ticket.bjs
[gitlive] / Ticket.vala
index d49456f..4250445 100644 (file)
@@ -112,54 +112,53 @@ public class Ticket : Object
        this.el.set_default_size( 500,200); // not sure why it grows..
        
        GLib.debug("Showing dialog?"); 
-        while(Gtk.events_pending()) {
-               Gtk.main_iteration();
-       }
-       
-       
-       
-    
-       //GitMonitor.gitmonitor.stop();
-       
-        this.repo = repo;
-        
-        
-        
-        
-    //    GLib.debug("Loading tickets"); 
-         
-    
+        Timeout.add_seconds(1, () => {
+               
+               
+               
     
-       RooProject? curproj = null;
-        if (this.repo != null) {
-           curproj = RooProject.getProjectByRepo(this.repo);
-        }
-       _this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
-        if (curproj != null) {
-     
+               //GitMonitor.gitmonitor.stop();
                
-               var rt = RooTicket.singleton();
-               rt.loadProjectOptions(curproj.id);
+               this.repo = repo;
                
-               _this.msmodel.loadMilestones();
-               _this.primodel.loadPriorities();
-               _this.sevmodel.loadSeverities();
-               _this.clmodel.loadClassifications();    
-               _this.devmodel.loadDevelopers();        
                
-        }
-       _this.summary.el.set_text("");
-       _this.description.el.buffer.text = ""; 
-        _this.spinner.el.stop();
-       _this.spinner.el.hide();        
+               
+               
+       //    GLib.debug("Loading tickets"); 
+                
     
-        this.table.el.show();
-     
     
-       
+               RooProject? curproj = null;
+               if (this.repo != null) {
+                       curproj = RooProject.getProjectByRepo(this.repo);
+               }
+               _this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
+               if (curproj != null) {
+        
+                       
+                       var rt = RooTicket.singleton();
+                       rt.loadProjectOptions(curproj.id);
+                       
+                       _this.msmodel.loadMilestones();
+                       _this.primodel.loadPriorities();
+                       _this.sevmodel.loadSeverities();
+                       _this.clmodel.loadClassifications();    
+                       _this.devmodel.loadDevelopers();        
+                       
+               }
+               _this.summary.el.set_text("");
+               _this.description.el.buffer.text = ""; 
+               _this.spinner.el.stop();
+               _this.spinner.el.hide();        
     
-     
-       this.el.run();
+               this.table.el.show();
+        
+    
+          
+    
+        
+               this.el.run();
+       });
     
     }
     public class Xcls_Box2 : Object