From 7adfb96591be9b544a66fcc6cb625562a1e8362a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 21 Mar 2019 12:38:17 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 28 +++++++++++++++++------ NewBranch.vala | 60 ++++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 77 insertions(+), 11 deletions(-) diff --git a/NewBranch.bjs b/NewBranch.bjs index 9b78cb21..c52b1fb4 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -248,15 +248,29 @@ "xtype" : "Label", "string label" : "Quick Commit", "$ xns" : "Gtk" + }, + { + "bool homogeneous" : false, + "* pack" : "append_page,_this.label_select_ticket.el", + "xtype" : "Box", + "$ xns" : "Gtk", + "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL" + }, + { + "bool homogeneous" : false, + "xtype" : "Box", + "* pack" : "append_page,_this.label_select_ticket.el", + "$ xns" : "Gtk", + "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL" + }, + { + "bool homogeneous" : false, + "* pack" : "append_page,_this.label_select_ticket.el", + "xtype" : "Box", + "$ xns" : "Gtk", + "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL" } ] - }, - { - "bool homogeneous" : false, - "* pack" : "append_page,_this.label_select_ticket.el", - "xtype" : "Box", - "$ xns" : "Gtk", - "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL" } ] } diff --git a/NewBranch.vala b/NewBranch.vala index 9b2f0628..bc45e8d9 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -56,9 +56,6 @@ 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.append_page ( child_2.el , _this.label_select_ticket.el ); //listeners this.el.delete_event.connect( (self, event) => { @@ -991,6 +988,15 @@ public class NewBranch : Object child_1.ref(); var child_2 = new Xcls_label_quick_commit( _this ); child_2.ref(); + var child_3 = new Xcls_Box26( _this ); + child_3.ref(); + this.el.append_page ( child_3.el , _this.label_select_ticket.el ); + var child_4 = new Xcls_Box27( _this ); + child_4.ref(); + this.el.append_page ( child_4.el , _this.label_select_ticket.el ); + var child_5 = new Xcls_Box28( _this ); + child_5.ref(); + this.el.append_page ( child_5.el , _this.label_select_ticket.el ); } // user defined functions @@ -1064,7 +1070,6 @@ public class NewBranch : Object // user defined functions } - public class Xcls_Box26 : Object { public Gtk.Box el; @@ -1088,4 +1093,51 @@ public class NewBranch : Object // user defined functions } + public class Xcls_Box27 : Object + { + public Gtk.Box el; + private NewBranch _this; + + + // my vars (def) + + // ctor + public Xcls_Box27(NewBranch _owner ) + { + _this = _owner; + this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 ); + + // my vars (dec) + + // set gobject values + this.el.homogeneous = false; + } + + // user defined functions + } + + public class Xcls_Box28 : Object + { + public Gtk.Box el; + private NewBranch _this; + + + // my vars (def) + + // ctor + public Xcls_Box28(NewBranch _owner ) + { + _this = _owner; + this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 ); + + // my vars (dec) + + // set gobject values + this.el.homogeneous = false; + } + + // user defined functions + } + + } -- 2.39.2