From 06140044ad048dd62a7acdd2a9f4a7bcc8845f36 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 13:05:07 +0800 Subject: [PATCH] Clones.bjs Clones.vala --- Clones.bjs | 2 +- Clones.vala | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Clones.bjs b/Clones.bjs index 37ddc2be..12f0f516 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -170,7 +170,7 @@ }, { "id" : "tv_current_branch", - "* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'markup', 1 );\n this.el.add_attribute(this.items[0].el , 'cell-background', 7 );\n\n}\n", + "* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(_this.cr_current_branch.el , 'markup', 1 );\n this.el.add_attribute(_this.cr_current_branch.el, 'cell-background', 7 );\n\n}\n", "* pack" : "append_column", "title" : "Current Branch", "xtype" : "TreeViewColumn", diff --git a/Clones.vala b/Clones.vala index a9ed03c4..e45a25a0 100644 --- a/Clones.vala +++ b/Clones.vala @@ -808,8 +808,8 @@ public class Clones : Object function() { XObject.prototype.init.call(this); - this.el.add_attribute(this.items[0].el , 'markup', 1 ); - this.el.add_attribute(this.items[0].el , 'cell-background', 7 ); + this.el.add_attribute(_this.cr_current_branch.el , 'markup', 1 ); + this.el.add_attribute(_this.cr_current_branch.el, 'cell-background', 7 ); } } -- 2.39.2