From: Alan Knowles Date: Mon, 24 Dec 2018 07:34:06 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=ac9372b5e9fb2acf3aec877e84269cba67c8cf10 Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index f90d612a..ca52060e 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -30,6 +30,7 @@ "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "items" : [ { + "id" : "toolbar", "bool homogeneous" : true, "xtype" : "Box", "* pack" : "pack_start,false,false,0", diff --git a/Clones.vala b/Clones.vala index b5e36fa4..6f6d78b0 100644 --- a/Clones.vala +++ b/Clones.vala @@ -12,6 +12,7 @@ public class Clones : Object } return _Clones; } + public Xcls_toolbar toolbar; public Xcls_reposView reposView; public Xcls_reposStore reposStore; public Xcls_tv_autocommit tv_autocommit; @@ -125,7 +126,7 @@ public class Clones : Object // my vars (dec) // set gobject values - var child_0 = new Xcls_Box3( _this ); + var child_0 = new Xcls_toolbar( _this ); child_0.ref(); this.el.pack_start ( child_0.el , false,false,0 ); var child_1 = new Xcls_ScrolledWindow5( _this ); @@ -135,7 +136,7 @@ public class Clones : Object // user defined functions } - public class Xcls_Box3 : Object + public class Xcls_toolbar : Object { public Gtk.Box el; private Clones _this; @@ -144,9 +145,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Box3(Clones _owner ) + public Xcls_toolbar(Clones _owner ) { _this = _owner; + _this.toolbar = this; this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 ); // my vars (dec)