Clones.bjs
[gitlive] / Clones.vala
index b5d943d..066a3cd 100644 (file)
@@ -24,7 +24,9 @@ public class Clones : Object
     public Xcls_tv_current_branch tv_current_branch;
     public Xcls_cr_current_branch cr_current_branch;
     public Xcls_tv_last_updated tv_last_updated;
+    public Xcls_cr_last_updated cr_last_updated;
     public Xcls_tv_all_branches tv_all_branches;
+    public Xcls_cr_all_branches cr_all_branches;
     public Xcls_ok_button ok_button;
 
         // my vars (def)
@@ -445,8 +447,6 @@ public class Clones : Object
             var child_0 = new Xcls_reposView( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_TreeView24( _this );
-            child_1.ref();
 
             // init method
 
@@ -562,8 +562,9 @@ public class Clones : Object
      typeof(string),  // 3 updated
      typeof(bool),   // 4 auto commit
      typeof(bool),   // 5 auto push
-     typeof(string)   // 7 repopath
-      typeof(string)   // 8 color highlighting? );
+     typeof(string),   // 7 repopath
+      typeof(string)   // 8 color highlighting?
+       );
 
             // my vars (dec)
 
@@ -600,7 +601,7 @@ public class Clones : Object
             // init method
 
             //    this.items[0].el.set_activatable(true);
-             this.el.add_attribute(_this.keyrender.el , "active", 4 );
+             this.el.add_attribute(_this.cr_autocommit.el , "active", 4 );
         }
 
         // user defined functions
@@ -675,7 +676,7 @@ public class Clones : Object
 
             // init method
 
-            this.el.add_attribute(this.items[0].el , 'active', 5 );
+            this.el.add_attribute(_this.cr_autopush.el , "active", 5 );
             //      this.items[0].el.set_activatable(true);
         }
 
@@ -702,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);
                                                                              
@@ -714,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);
-                 
+                */
             });
         }
 
@@ -749,11 +750,7 @@ public class Clones : Object
 
             // init method
 
-            function() {
-                XObject.prototype.init.call(this);
-                this.el.add_attribute(this.items[0].el , 'markup', 0 );
-            
-            }
+            this.el.add_attribute(_this.cr_repo.el , "markup", 0 );
         }
 
         // user defined functions
@@ -808,12 +805,8 @@ public class Clones : Object
 
             // init method
 
-            function() {
-                XObject.prototype.init.call(this);
-                this.el.add_attribute(this.items[0].el , 'markup', 1 );
-                 this.el.add_attribute(this.items[0].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
@@ -862,22 +855,18 @@ public class Clones : Object
             // set gobject values
             this.el.title = "Last updated";
             this.el.min_width = 50;
-            var child_0 = new Xcls_CellRendererText21( _this );
+            var child_0 = new Xcls_cr_last_updated( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el  );
 
             // init method
 
-            function() {
-                XObject.prototype.init.call(this);
-                this.el.add_attribute(this.items[0].el , 'markup', 3 );
-            
-            }
+            this.el.add_attribute(_this.cr_last_updated.el , "markup", 3 );
         }
 
         // user defined functions
     }
-    public class Xcls_CellRendererText21 : Object
+    public class Xcls_cr_last_updated : Object
     {
         public Gtk.CellRendererText el;
         private Clones  _this;
@@ -886,9 +875,10 @@ public class Clones : Object
             // my vars (def)
 
         // ctor
-        public Xcls_CellRendererText21(Clones _owner )
+        public Xcls_cr_last_updated(Clones _owner )
         {
             _this = _owner;
+            _this.cr_last_updated = this;
             this.el = new Gtk.CellRendererText();
 
             // my vars (dec)
@@ -921,22 +911,18 @@ public class Clones : Object
             this.el.title = "All Branches";
             this.el.min_width = 50;
             this.el.resizable = false;
-            var child_0 = new Xcls_CellRendererText23( _this );
+            var child_0 = new Xcls_cr_all_branches( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el  );
 
             // init method
 
-            function() {
-                XObject.prototype.init.call(this);
-                this.el.add_attribute(this.items[0].el , 'markup', 2 );
-            
-            }
+            this.el.add_attribute(_this.cr_all_branches.el , "markup", 2 );
         }
 
         // user defined functions
     }
-    public class Xcls_CellRendererText23 : Object
+    public class Xcls_cr_all_branches : Object
     {
         public Gtk.CellRendererText el;
         private Clones  _this;
@@ -945,9 +931,10 @@ public class Clones : Object
             // my vars (def)
 
         // ctor
-        public Xcls_CellRendererText23(Clones _owner )
+        public Xcls_cr_all_branches(Clones _owner )
         {
             _this = _owner;
+            _this.cr_all_branches = this;
             this.el = new Gtk.CellRendererText();
 
             // my vars (dec)
@@ -960,52 +947,6 @@ public class Clones : Object
 
 
 
-    public class Xcls_TreeView24 : Object
-    {
-        public Gtk.TreeView el;
-        private Clones  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_TreeView24(Clones _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.TreeView();
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_ListStore25( _this );
-            child_0.ref();
-        }
-
-        // user defined functions
-    }
-    public class Xcls_ListStore25 : Object
-    {
-        public Gtk.ListStore el;
-        private Clones  _this;
-
-
-            // my vars (def)
-
-        // ctor
-        public Xcls_ListStore25(Clones _owner )
-        {
-            _this = _owner;
-            this.el = new Gtk.ListStore( 0, null );
-
-            // my vars (dec)
-
-            // set gobject values
-        }
-
-        // user defined functions
-    }
-
-
 
 
     public class Xcls_ok_button : Object