Clones.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 05:05:07 +0000 (13:05 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 05:05:07 +0000 (13:05 +0800)
Clones.vala

Clones.bjs
Clones.vala

index 37ddc2b..12f0f51 100644 (file)
           },
           {
            "id" : "tv_current_branch",
-           "* init" : "function() {\n    XObject.prototype.init.call(this);\n    this.el.add_attribute(this.items[0].el , 'markup', 1 );\n     this.el.add_attribute(this.items[0].el , 'cell-background', 7 );\n\n}\n",
+           "* init" : "function() {\n    XObject.prototype.init.call(this);\n    this.el.add_attribute(_this.cr_current_branch.el , 'markup', 1 );\n     this.el.add_attribute(_this.cr_current_branch.el, 'cell-background', 7 );\n\n}\n",
            "* pack" : "append_column",
            "title" : "Current Branch",
            "xtype" : "TreeViewColumn",
index a9ed03c..e45a25a 100644 (file)
@@ -808,8 +808,8 @@ public class Clones : Object
 
             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 );
             
             }
         }