From: Alan Knowles Date: Tue, 30 Oct 2018 05:02:14 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=63bfac46b303e34baa4c63e53c93290652f30134 Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index dcb37b4e..d8710741 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -198,6 +198,7 @@ ] }, { + "id" : "tv_all_branches", "* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'markup', 2 );\n\n}\n", "title" : "All Branches", "* pack" : "append_column", diff --git a/Clones.vala b/Clones.vala index 4e989fab..a41fb367 100644 --- a/Clones.vala +++ b/Clones.vala @@ -20,6 +20,7 @@ public class Clones : Object public Xcls_tv_repo tv_repo; public Xcls_tv_current_branch tv_current_branch; public Xcls_tv_last_updated tv_last_updated; + public Xcls_tv_all_branches tv_all_branches; public Xcls_ok_button ok_button; // my vars (def) @@ -489,7 +490,7 @@ public class Clones : Object 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 ); + var child_6 = new Xcls_tv_all_branches( _this ); child_6.ref(); this.el.append_column ( child_6.el ); @@ -891,7 +892,7 @@ public class Clones : Object } - public class Xcls_TreeViewColumn22 : Object + public class Xcls_tv_all_branches : Object { public Gtk.TreeViewColumn el; private Clones _this; @@ -900,9 +901,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_TreeViewColumn22(Clones _owner ) + public Xcls_tv_all_branches(Clones _owner ) { _this = _owner; + _this.tv_all_branches = this; this.el = new Gtk.TreeViewColumn(); // my vars (dec)