From: Alan Knowles Date: Mon, 24 Dec 2018 07:34:59 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=d021cdafef7cb978f096c29e9ad2cb84a9848bd6 Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index 4d95b53c..6e7c6017 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -30,6 +30,7 @@ "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "items" : [ { + "id" : "spinner", "* pack" : "pack_start,false,false,0", "xtype" : "Spinner", "$ xns" : "Gtk" diff --git a/Clones.vala b/Clones.vala index 6dfe6a56..ca0ec5a4 100644 --- a/Clones.vala +++ b/Clones.vala @@ -12,6 +12,7 @@ public class Clones : Object } return _Clones; } + public Xcls_spinner spinner; public Xcls_toolbar toolbar; public Xcls_scrolled scrolled; public Xcls_reposView reposView; @@ -127,7 +128,7 @@ public class Clones : Object // my vars (dec) // set gobject values - var child_0 = new Xcls_Spinner3( _this ); + var child_0 = new Xcls_spinner( _this ); child_0.ref(); this.el.pack_start ( child_0.el , false,false,0 ); var child_1 = new Xcls_toolbar( _this ); @@ -140,7 +141,7 @@ public class Clones : Object // user defined functions } - public class Xcls_Spinner3 : Object + public class Xcls_spinner : Object { public Gtk.Spinner el; private Clones _this; @@ -149,9 +150,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Spinner3(Clones _owner ) + public Xcls_spinner(Clones _owner ) { _this = _owner; + _this.spinner = this; this.el = new Gtk.Spinner(); // my vars (dec)