From 9af50e3ff6a9804a5e4290384478f09ed11905a2 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 21 Mar 2019 12:37:30 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 5 +++++ NewBranch.vala | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/NewBranch.bjs b/NewBranch.bjs index 3df949ed..f27995b1 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -250,6 +250,11 @@ "$ xns" : "Gtk" } ] + }, + { + "* pack" : "composite_name", + "xtype" : "Box", + "$ xns" : "Gtk" } ] } diff --git a/NewBranch.vala b/NewBranch.vala index 3d903743..6347837f 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -56,6 +56,9 @@ public class NewBranch : Object var child_1 = new Xcls_Notebook22( _this ); child_1.ref(); this.el.add ( child_1.el ); + var child_2 = new Xcls_Box26( _this ); + child_2.ref(); + this.el.composite_name ( child_2.el ); //listeners this.el.delete_event.connect( (self, event) => { @@ -1062,4 +1065,26 @@ public class NewBranch : Object } + public class Xcls_Box26 : Object + { + public Gtk.Box el; + private NewBranch _this; + + + // my vars (def) + + // ctor + public Xcls_Box26(NewBranch _owner ) + { + _this = _owner; + this.el = new Gtk.Box( null, 0 ); + + // my vars (dec) + + // set gobject values + } + + // user defined functions + } + } -- 2.39.2