From: Alan Knowles Date: Tue, 30 Oct 2018 05:01:30 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=cdd3569dcbc802bacf60d0bdc7a7f1cdfd0b3185 Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index ce8b7aaa..d595f914 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -129,6 +129,7 @@ ] }, { + "id" : "tv_autopush", "* init" : " \n this.el.add_attribute(this.items[0].el , 'active', 5 );\n// this.items[0].el.set_activatable(true);\n\n", "* pack" : "append_column", "title" : "Auto Push", diff --git a/Clones.vala b/Clones.vala index d619b71b..66628eab 100644 --- a/Clones.vala +++ b/Clones.vala @@ -16,6 +16,7 @@ public class Clones : Object public Xcls_reposView reposView; public Xcls_reposStore reposStore; public Xcls_tv_autocommit tv_autocommit; + public Xcls_tv_autopush tv_autopush; public Xcls_ok_button ok_button; // my vars (def) @@ -473,7 +474,7 @@ public class Clones : Object var child_1 = new Xcls_tv_autocommit( _this ); child_1.ref(); this.el.append_column ( child_1.el ); - var child_2 = new Xcls_TreeViewColumn14( _this ); + 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 ); @@ -639,7 +640,7 @@ public class Clones : Object } - public class Xcls_TreeViewColumn14 : Object + public class Xcls_tv_autopush : Object { public Gtk.TreeViewColumn el; private Clones _this; @@ -648,9 +649,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_TreeViewColumn14(Clones _owner ) + public Xcls_tv_autopush(Clones _owner ) { _this = _owner; + _this.tv_autopush = this; this.el = new Gtk.TreeViewColumn(); // my vars (dec)