From 392da7e7afca4525011d1ef0c3eeb41f168563bf Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 13:04:42 +0800 Subject: [PATCH] Clones.bjs Clones.vala --- Clones.bjs | 2 +- Clones.vala | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Clones.bjs b/Clones.bjs index 7517c9fa..37ddc2be 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -152,7 +152,7 @@ }, { "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", diff --git a/Clones.vala b/Clones.vala index 5f32c161..a9ed03c4 100644 --- a/Clones.vala +++ b/Clones.vala @@ -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 -- 2.39.2