Ticket.bjs
[gitlive] / Ticket.vala
index d8b10d9..eb97279 100644 (file)
@@ -12,6 +12,7 @@ public class Ticket : Object
         }
         return _Ticket;
     }
+    public Xcls_table table;
     public Xcls_project_id project_id;
     public Xcls_prcellrenderer prcellrenderer;
     public Xcls_prmodel prmodel;
@@ -99,6 +100,15 @@ public class Ticket : Object
                GLib.error("new branch show called, when already being displayed?");
        }
      
+     
+       _this.el.show_all();
+       
+       _this.table.el.hide();
+    
+       _this.spinner.el.show();
+       _this.spinner.el.start();       
+       
+     
        
        this.running  = true;
        //GitMonitor.gitmonitor.stop();
@@ -107,15 +117,12 @@ public class Ticket : Object
         
         
         
-        
+        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"); 
+    //    GLib.debug("Loading tickets"); 
          
     
-        this.el.show_all();
-        this.el.set_keep_above(true);
-       
     
        RooProject? curproj = null;
         if (this.repo != null) {
@@ -135,9 +142,15 @@ public class Ticket : Object
                _this.devmodel.loadDevelopers();        
                
         }
-               _this.summary.el.set_text("");
-               _this.description.el.buffer.text = ""; 
+       _this.summary.el.set_text("");
+       _this.description.el.buffer.text = ""; 
         
+    
+        this.el.table.el.show();
+        this.el.table.el.hide();
+    
+       
+    
      
        this.el.run();
     
@@ -159,7 +172,7 @@ public class Ticket : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_Table3( _this );
+            var child_0 = new Xcls_table( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false,0 );
             var child_1 = new Xcls_spinner( _this );
@@ -169,7 +182,7 @@ public class Ticket : Object
 
         // user defined functions
     }
-    public class Xcls_Table3 : Object
+    public class Xcls_table : Object
     {
         public Gtk.Table el;
         private Ticket  _this;
@@ -178,9 +191,10 @@ public class Ticket : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Table3(Ticket _owner )
+        public Xcls_table(Ticket _owner )
         {
             _this = _owner;
+            _this.table = this;
             this.el = new Gtk.Table( 14, 4, true );
 
             // my vars (dec)