From: Alan Knowles Date: Tue, 30 Oct 2018 05:01:55 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=7ff8867cf50d3d53ccdfafdbf973f28075ad660d Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index 34a71ded..86d57f9c 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -166,6 +166,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", "* pack" : "append_column", "title" : "Current Branch", diff --git a/Clones.vala b/Clones.vala index 6c9ec3bf..307c7373 100644 --- a/Clones.vala +++ b/Clones.vala @@ -18,6 +18,7 @@ public class Clones : Object public Xcls_tv_autocommit tv_autocommit; public Xcls_tv_autopush tv_autopush; public Xcls_tv_repo tv_repo; + public Xcls_tv_current_branch tv_current_branch; public Xcls_ok_button ok_button; // my vars (def) @@ -481,7 +482,7 @@ public class Clones : Object var child_3 = new Xcls_tv_repo( _this ); child_3.ref(); this.el.append_column ( child_3.el ); - var child_4 = new Xcls_TreeViewColumn18( _this ); + 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 ); @@ -772,7 +773,7 @@ public class Clones : Object } - public class Xcls_TreeViewColumn18 : Object + public class Xcls_tv_current_branch : Object { public Gtk.TreeViewColumn el; private Clones _this; @@ -781,9 +782,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_TreeViewColumn18(Clones _owner ) + public Xcls_tv_current_branch(Clones _owner ) { _this = _owner; + _this.tv_current_branch = this; this.el = new Gtk.TreeViewColumn(); // my vars (dec)