From 471ee11c2d136864a7e36fd766b3046faa1ee185 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 13:03:29 +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 b04434f8..a605f59c 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -195,6 +195,7 @@ "$ xns" : "Gtk", "items" : [ { + "id" : "cr_last_updated", "* pack" : "pack_start", "xtype" : "CellRendererText", "$ xns" : "Gtk" diff --git a/Clones.vala b/Clones.vala index b5d943d8..81c0c736 100644 --- a/Clones.vala +++ b/Clones.vala @@ -24,6 +24,7 @@ public class Clones : Object public Xcls_tv_current_branch tv_current_branch; public Xcls_cr_current_branch cr_current_branch; public Xcls_tv_last_updated tv_last_updated; + public Xcls_cr_last_updated cr_last_updated; public Xcls_tv_all_branches tv_all_branches; public Xcls_ok_button ok_button; @@ -862,7 +863,7 @@ public class Clones : Object // set gobject values this.el.title = "Last updated"; this.el.min_width = 50; - var child_0 = new Xcls_CellRendererText21( _this ); + var child_0 = new Xcls_cr_last_updated( _this ); child_0.ref(); this.el.pack_start ( child_0.el ); @@ -877,7 +878,7 @@ public class Clones : Object // user defined functions } - public class Xcls_CellRendererText21 : Object + public class Xcls_cr_last_updated : Object { public Gtk.CellRendererText el; private Clones _this; @@ -886,9 +887,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_CellRendererText21(Clones _owner ) + public Xcls_cr_last_updated(Clones _owner ) { _this = _owner; + _this.cr_last_updated = this; this.el = new Gtk.CellRendererText(); // my vars (dec) -- 2.39.2