From d021cdafef7cb978f096c29e9ad2cb84a9848bd6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 24 Dec 2018 15:34:59 +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 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) -- 2.39.2