From f21b75a42cd58bf0b3112ddc933bf87895c543c4 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 24 Dec 2018 15:34:42 +0800 Subject: [PATCH] Clones.bjs Clones.vala --- Clones.bjs | 5 +++++ Clones.vala | 39 ++++++++++++++++++++++++++++++++------- 2 files changed, 37 insertions(+), 7 deletions(-) diff --git a/Clones.bjs b/Clones.bjs index a7edb5e5..25b057d4 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -29,6 +29,11 @@ "$ xns" : "Gtk", "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "items" : [ + { + "* pack" : "pack_start,?bool?,?bool?,?uint?", + "xtype" : "Spinner", + "$ xns" : "Gtk" + }, { "id" : "toolbar", "bool homogeneous" : true, diff --git a/Clones.vala b/Clones.vala index 1812b08a..179032a0 100644 --- a/Clones.vala +++ b/Clones.vala @@ -127,16 +127,41 @@ public class Clones : Object // my vars (dec) // set gobject values - var child_0 = new Xcls_toolbar( _this ); + var child_0 = new Xcls_Spinner3( _this ); child_0.ref(); - this.el.pack_start ( child_0.el , false,false,0 ); - var child_1 = new Xcls_scrolled( _this ); + this.el.pack_start ( child_0.el , ?bool?,?bool?,?uint? ); + var child_1 = new Xcls_toolbar( _this ); child_1.ref(); - this.el.pack_end ( child_1.el , true,true,0 ); + this.el.pack_start ( child_1.el , false,false,0 ); + var child_2 = new Xcls_scrolled( _this ); + child_2.ref(); + this.el.pack_end ( child_2.el , true,true,0 ); } // user defined functions } + public class Xcls_Spinner3 : Object + { + public Gtk.Spinner el; + private Clones _this; + + + // my vars (def) + + // ctor + public Xcls_Spinner3(Clones _owner ) + { + _this = _owner; + this.el = new Gtk.Spinner(); + + // my vars (dec) + + // set gobject values + } + + // user defined functions + } + public class Xcls_toolbar : Object { public Gtk.Box el; @@ -156,14 +181,14 @@ public class Clones : Object // set gobject values this.el.homogeneous = true; - var child_0 = new Xcls_Button4( _this ); + var child_0 = new Xcls_Button5( _this ); child_0.ref(); this.el.add ( child_0.el ); } // user defined functions } - public class Xcls_Button4 : Object + public class Xcls_Button5 : Object { public Gtk.Button el; private Clones _this; @@ -172,7 +197,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button4(Clones _owner ) + public Xcls_Button5(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); -- 2.39.2