From 70bb7bc98fde1a563dc9b13ce1b38970d29966c6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 13:01:45 +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 d595f914..34a71ded 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -149,6 +149,7 @@ ] }, { + "id" : "tv_repo", "* init" : "function() {\n XObject.prototype.init.call(this);\n this.el.add_attribute(this.items[0].el , 'markup', 0 );\n\n}\n", "title" : "Repo", "* pack" : "append_column", diff --git a/Clones.vala b/Clones.vala index 66628eab..6c9ec3bf 100644 --- a/Clones.vala +++ b/Clones.vala @@ -17,6 +17,7 @@ public class Clones : Object public Xcls_reposStore reposStore; public Xcls_tv_autocommit tv_autocommit; public Xcls_tv_autopush tv_autopush; + public Xcls_tv_repo tv_repo; public Xcls_ok_button ok_button; // my vars (def) @@ -477,7 +478,7 @@ public class Clones : Object var child_2 = new Xcls_tv_autopush( _this ); child_2.ref(); this.el.append_column ( child_2.el ); - var child_3 = new Xcls_TreeViewColumn16( _this ); + 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 ); @@ -712,7 +713,7 @@ public class Clones : Object } - public class Xcls_TreeViewColumn16 : Object + public class Xcls_tv_repo : Object { public Gtk.TreeViewColumn el; private Clones _this; @@ -721,9 +722,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_TreeViewColumn16(Clones _owner ) + public Xcls_tv_repo(Clones _owner ) { _this = _owner; + _this.tv_repo = this; this.el = new Gtk.TreeViewColumn(); // my vars (dec) -- 2.39.2