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

Clones.bjs
Clones.vala

index 7517c9f..37ddc2b 100644 (file)
           },
           {
            "id" : "tv_repo",
-           "* init" : "function() {\n    XObject.prototype.init.call(this);\n    this.el.add_attribute(this.items[0].el , 'markup', 0 );\n\n}\n",
+           "* init" : "\n    this.el.add_attribute(_this.cr_repo.el , 'markup', 0 );\n",
            "title" : "Repo",
            "* pack" : "append_column",
            "xtype" : "TreeViewColumn",
index 5f32c16..a9ed03c 100644 (file)
@@ -751,11 +751,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