From: Alan Knowles Date: Tue, 30 Oct 2018 05:05:50 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=8c3d7ae926df089a3ff080f3ae0c0cb408cce8a4 Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index deebd2e5..cbeb8772 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -204,7 +204,7 @@ }, { "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", diff --git a/Clones.vala b/Clones.vala index b87a9a3b..d863406b 100644 --- a/Clones.vala +++ b/Clones.vala @@ -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