Clones.bjs
[gitlive] / Clones.vala
index 75d2c86..109dd6d 100644 (file)
@@ -511,6 +511,7 @@ public class Clones : Object
                 var description = new Pango.FontDescription();
                 description.set_size(10000);
                 this.el.override_font(description);
+             
             }
 
             //listeners
@@ -559,7 +560,7 @@ public class Clones : Object
         {
             _this = _owner;
             _this.reposStore = this;
-            this.el = new Gtk.ListStore( 0,      typeof(string),  // 0 repo
+            this.el = new Gtk.ListStore( 8,      typeof(string),  // 0 repo
      typeof(string),  // 1 current branch
      typeof(string),  // 2 all branch
      typeof(string),  // 3 updated
@@ -613,7 +614,7 @@ public class Clones : Object
         //        this.el.set_value(iter, 3, '' +  (!hi  ? '??' : hi[0].changed_raw));        
                 this.el.set_value(iter, 4, repo.is_autocommit() );                
                 this.el.set_value(iter, 5, repo.is_autopush() );                        
-                this.el.set_value(ret.iter, 6,  repo.repopath );  
+                this.el.set_value(iter, 6,  repo.gitdir );  
                 // highlight color.
                 var cb = repo.currentBranch;
                 //print(JSON.stringify(cb,null,4));
@@ -629,7 +630,7 @@ public class Clones : Object
                     col =  '#ff00ff';
                 }
                 */
-                this.el.set_value(ret.iter, 7, col  );      
+                this.el.set_value(iter, 7, col  );      
                 
             }     
         }
@@ -802,8 +803,10 @@ public class Clones : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.sort_column_id = 3;
             this.el.title = "Repo";
             this.el.min_width = 200;
+            this.el.sort_order = Gtk.SortType.ASCENDING;
             this.el.resizable = true;
             var child_0 = new Xcls_cr_repo( _this );
             child_0.ref();