Ticket.bjs
[gitlive] / Ticket.vala
index eb97279..d49456f 100644 (file)
@@ -99,7 +99,7 @@ public class Ticket : Object
         if (this.running) { // should not happen!!
                GLib.error("new branch show called, when already being displayed?");
        }
-     
+       this.running  = true;
      
        _this.el.show_all();
        
@@ -107,19 +107,25 @@ public class Ticket : Object
     
        _this.spinner.el.show();
        _this.spinner.el.start();       
+       this.el.set_keep_above(true);    
+       this.el.move((Gdk.Screen.width() / 2)- 250 ,0);
+       this.el.set_default_size( 500,200); // not sure why it grows..
+       
+       GLib.debug("Showing dialog?"); 
+        while(Gtk.events_pending()) {
+               Gtk.main_iteration();
+       }
+       
        
-     
        
-       this.running  = true;
+    
        //GitMonitor.gitmonitor.stop();
        
         this.repo = repo;
         
         
         
-        this.el.set_keep_above(true);    
-       this.el.move((Gdk.Screen.width() / 2)- 250 ,0);
-       this.el.set_default_size( 500,200); // not sure why it grows..
+        
     //    GLib.debug("Loading tickets"); 
          
     
@@ -144,10 +150,11 @@ public class Ticket : Object
         }
        _this.summary.el.set_text("");
        _this.description.el.buffer.text = ""; 
-        
+        _this.spinner.el.stop();
+       _this.spinner.el.hide();        
     
-        this.el.table.el.show();
-        this.el.table.el.hide();
+        this.table.el.show();
+