From ffc6a5b541445ded8c1bf0fb4dffdbc2ef396c79 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 13:16:06 +0800 Subject: [PATCH] Clones.bjs Clones.vala --- Clones.bjs | 4 ---- Clones.vala | 62 +++++++++++++++++------------------------------------ 2 files changed, 20 insertions(+), 46 deletions(-) diff --git a/Clones.bjs b/Clones.bjs index 15275c2e..d09beab5 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -28,10 +28,6 @@ "xtype" : "Box", "$ xns" : "Gtk", "items" : [ - { - "xtype" : "Box", - "$ xns" : "Gtk" - }, { "* pack" : "pack_start,false,false,0", "xtype" : "Box", diff --git a/Clones.vala b/Clones.vala index 4c2eadc1..12b5325e 100644 --- a/Clones.vala +++ b/Clones.vala @@ -96,12 +96,10 @@ public class Clones : Object // my vars (dec) var child_0 = new Xcls_Box3( _this ); child_0.ref(); - var child_1 = new Xcls_Box4( _this ); + this.el.pack_start ( child_0.el , false,false,0 ); + var child_1 = new Xcls_ScrolledWindow9( _this ); child_1.ref(); - this.el.pack_start ( child_1.el , false,false,0 ); - var child_2 = new Xcls_ScrolledWindow10( _this ); - child_2.ref(); - this.el.pack_end ( child_2.el , true,true,0 ); + this.el.pack_end ( child_1.el , true,true,0 ); } // user defined functions @@ -121,46 +119,26 @@ public class Clones : Object this.el = new Gtk.Box(); // my vars (dec) - } - - // user defined functions - } - - public class Xcls_Box4 : Object - { - public Gtk.Box el; - private Clones _this; - - - // my vars (def) - - // ctor - public Xcls_Box4(Clones _owner ) - { - _this = _owner; - this.el = new Gtk.Box(); - - // my vars (dec) - var child_0 = new Xcls_Button5( _this ); + var child_0 = new Xcls_Button4( _this ); child_0.ref(); this.el.add ( child_0.el ); - var child_1 = new Xcls_Button6( _this ); + var child_1 = new Xcls_Button5( _this ); child_1.ref(); this.el.add ( child_1.el ); - var child_2 = new Xcls_Button7( _this ); + var child_2 = new Xcls_Button6( _this ); child_2.ref(); this.el.add ( child_2.el ); - var child_3 = new Xcls_Button8( _this ); + var child_3 = new Xcls_Button7( _this ); child_3.ref(); this.el.add ( child_3.el ); - var child_4 = new Xcls_Button9( _this ); + var child_4 = new Xcls_Button8( _this ); child_4.ref(); this.el.add ( child_4.el ); } // user defined functions } - public class Xcls_Button5 : Object + public class Xcls_Button4 : Object { public Gtk.Button el; private Clones _this; @@ -169,7 +147,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button5(Clones _owner ) + public Xcls_Button4(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -225,7 +203,7 @@ public class Clones : Object // user defined functions } - public class Xcls_Button6 : Object + public class Xcls_Button5 : Object { public Gtk.Button el; private Clones _this; @@ -234,7 +212,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button6(Clones _owner ) + public Xcls_Button5(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -291,7 +269,7 @@ public class Clones : Object // user defined functions } - public class Xcls_Button7 : Object + public class Xcls_Button6 : Object { public Gtk.Button el; private Clones _this; @@ -300,7 +278,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button7(Clones _owner ) + public Xcls_Button6(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -358,7 +336,7 @@ public class Clones : Object // user defined functions } - public class Xcls_Button8 : Object + public class Xcls_Button7 : Object { public Gtk.Button el; private Clones _this; @@ -367,7 +345,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button8(Clones _owner ) + public Xcls_Button7(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -388,7 +366,7 @@ public class Clones : Object // user defined functions } - public class Xcls_Button9 : Object + public class Xcls_Button8 : Object { public Gtk.Button el; private Clones _this; @@ -397,7 +375,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button9(Clones _owner ) + public Xcls_Button8(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -419,7 +397,7 @@ public class Clones : Object } - public class Xcls_ScrolledWindow10 : Object + public class Xcls_ScrolledWindow9 : Object { public Gtk.ScrolledWindow el; private Clones _this; @@ -428,7 +406,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_ScrolledWindow10(Clones _owner ) + public Xcls_ScrolledWindow9(Clones _owner ) { _this = _owner; this.el = new Gtk.ScrolledWindow(); -- 2.39.2