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

Clones.bjs
Clones.vala

index deebd2e..cbeb877 100644 (file)
           },
           {
            "id" : "tv_all_branches",
-           "* init" : "function() {\n    XObject.prototype.init.call(this);\n    this.el.add_attribute(this.items[0].el , 'markup', 2 );\n\n}\n",
+           "* init" : "    this.el.add_attribute(_this.cr_all_branches.el , 'markup', 2 );\n\n",
            "title" : "All Branches",
            "* pack" : "append_column",
            "xtype" : "TreeViewColumn",
index b87a9a3..d863406 100644 (file)
@@ -922,11 +922,7 @@ public class Clones : Object
 
             // 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