Clones.bjs
[gitlive] / Clones.vala
index d658226..066a3cd 100644 (file)
@@ -703,8 +703,8 @@ public class Clones : Object
             this.el.mode = Gtk.CellRendererMode.ACTIVATABLE;
 
             //listeners
-            this.el.toggled.connect( function (self, path) {
-                var ret ={} ;
+            this.el.toggled.connect( (self, path)  => {
+            /*    var ret ={} ;
                 var store = this.get('/reposStore');
                 store.el.get_iter_from_string(ret, path);
                                                                              
@@ -715,7 +715,7 @@ public class Clones : Object
                   var path =  store.el.get_value(ret.iter, 6).value.get_string();
                  var repo = imports.Scm.Repo.Repo.get(path);
                  repo.autopush(!value);
-                 
+                */
             });
         }
 
@@ -805,12 +805,8 @@ public class Clones : Object
 
             // init method
 
-            function() {
-                XObject.prototype.init.call(this);
-                this.el.add_attribute(_this.cr_current_branch.el , 'markup', 1 );
-                 this.el.add_attribute(_this.cr_current_branch.el, 'cell-background', 7 );
-            
-            }
+            this.el.add_attribute(_this.cr_current_branch.el , "markup", 1 );
+                 this.el.add_attribute(_this.cr_current_branch.el, "cell-background", 7 );
         }
 
         // user defined functions
@@ -865,7 +861,7 @@ public class Clones : Object
 
             // init method
 
-            this.el.add_attribute(_this.cr_last_updated.el , 'markup', 3 );
+            this.el.add_attribute(_this.cr_last_updated.el , "markup", 3 );
         }
 
         // user defined functions
@@ -921,7 +917,7 @@ public class Clones : Object
 
             // init method
 
-            this.el.add_attribute(_this.cr_all_branches.el , 'markup', 2 );
+            this.el.add_attribute(_this.cr_all_branches.el , "markup", 2 );
         }
 
         // user defined functions