From 8ffbce9147495b855baf94dfafc6e72b69833cf7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 13:02:04 +0800 Subject: [PATCH] Clones.bjs Clones.vala --- Clones.bjs | 1 + Clones.vala | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Clones.bjs b/Clones.bjs index 86d57f9c..dcb37b4e 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -182,6 +182,7 @@ ] }, { + "id" : "tv_last_updated", "* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'markup', 3 );\n\n}\n", "* pack" : "append_column", "title" : "Last updated", diff --git a/Clones.vala b/Clones.vala index 307c7373..4e989fab 100644 --- a/Clones.vala +++ b/Clones.vala @@ -19,6 +19,7 @@ public class Clones : Object public Xcls_tv_autopush tv_autopush; public Xcls_tv_repo tv_repo; public Xcls_tv_current_branch tv_current_branch; + public Xcls_tv_last_updated tv_last_updated; public Xcls_ok_button ok_button; // my vars (def) @@ -485,7 +486,7 @@ public class Clones : Object var child_4 = new Xcls_tv_current_branch( _this ); child_4.ref(); this.el.append_column ( child_4.el ); - var child_5 = new Xcls_TreeViewColumn20( _this ); + var child_5 = new Xcls_tv_last_updated( _this ); child_5.ref(); this.el.append_column ( child_5.el ); var child_6 = new Xcls_TreeViewColumn22( _this ); @@ -832,7 +833,7 @@ public class Clones : Object } - public class Xcls_TreeViewColumn20 : Object + public class Xcls_tv_last_updated : Object { public Gtk.TreeViewColumn el; private Clones _this; @@ -841,9 +842,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_TreeViewColumn20(Clones _owner ) + public Xcls_tv_last_updated(Clones _owner ) { _this = _owner; + _this.tv_last_updated = this; this.el = new Gtk.TreeViewColumn(); // my vars (dec) -- 2.39.2