From: Alan Knowles Date: Tue, 30 Oct 2018 05:03:21 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=fbbc09d71275166830c900b53a3bdba889abb683 Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index d7639559..b04434f8 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -178,6 +178,7 @@ "$ xns" : "Gtk", "items" : [ { + "id" : "cr_current_branch", "* pack" : "pack_start", "xtype" : "CellRendererText", "$ xns" : "Gtk" diff --git a/Clones.vala b/Clones.vala index 01b78cca..b5d943d8 100644 --- a/Clones.vala +++ b/Clones.vala @@ -22,6 +22,7 @@ public class Clones : Object public Xcls_tv_repo tv_repo; public Xcls_cr_repo cr_repo; 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_tv_all_branches tv_all_branches; public Xcls_ok_button ok_button; @@ -801,7 +802,7 @@ public class Clones : Object // set gobject values this.el.title = "Current Branch"; this.el.min_width = 50; - var child_0 = new Xcls_CellRendererText19( _this ); + var child_0 = new Xcls_cr_current_branch( _this ); child_0.ref(); this.el.pack_start ( child_0.el ); @@ -817,7 +818,7 @@ public class Clones : Object // user defined functions } - public class Xcls_CellRendererText19 : Object + public class Xcls_cr_current_branch : Object { public Gtk.CellRendererText el; private Clones _this; @@ -826,9 +827,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_CellRendererText19(Clones _owner ) + public Xcls_cr_current_branch(Clones _owner ) { _this = _owner; + _this.cr_current_branch = this; this.el = new Gtk.CellRendererText(); // my vars (dec)