From da03862a8bf1621fcc8c28a020fdba4addd7a777 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 13:00:40 +0800 Subject: [PATCH] Clones.bjs Clones.vala --- Clones.bjs | 2 +- Clones.vala | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) 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 -- 2.39.2