From: Alan Knowles Date: Tue, 30 Oct 2018 05:00:40 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=da03862a8bf1621fcc8c28a020fdba4addd7a777 Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index fa023d80..84cf9d91 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -128,7 +128,7 @@ ] }, { - "* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'active', 5 );\n this.items[0].el.set_activatable(true);\n}\n", + "* init" : " \n this.el.add_attribute(this.items[0].el , 'active', 5 );\n// this.items[0].el.set_activatable(true);\n\n", "* pack" : "append_column", "title" : "Auto Push", "xtype" : "TreeViewColumn", diff --git a/Clones.vala b/Clones.vala index 073cd954..9a9d031d 100644 --- a/Clones.vala +++ b/Clones.vala @@ -662,11 +662,8 @@ public class Clones : Object // init method - function() { - XObject.prototype.init.call(this); - this.el.add_attribute(this.items[0].el , 'active', 5 ); - this.items[0].el.set_activatable(true); - } + this.el.add_attribute(this.items[0].el , 'active', 5 ); + // this.items[0].el.set_activatable(true); } // user defined functions