From 2c0826819c471bb0f6b1adee970d192e84028bcb Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 21 Mar 2019 14:25:45 +0800 Subject: [PATCH] Ticket.bjs Ticket.vala NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 8 ++++++++ NewBranch.vala | 47 ++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 46 insertions(+), 9 deletions(-) diff --git a/NewBranch.bjs b/NewBranch.bjs index 2eb59ed2..bd369f11 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -495,6 +495,14 @@ "$ xns" : "Gtk" } ] + }, + { + "id" : "spinner", + "bool hexpand" : true, + "* pack" : "add", + "xtype" : "Spinner", + "$ xns" : "Gtk", + "bool vexpand" : true } ] }, diff --git a/NewBranch.vala b/NewBranch.vala index 28562bb5..dcbbb9b7 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -45,6 +45,7 @@ public class NewBranch : Object public Xcls_clmodel clmodel; public Xcls_developer_id developer_id; public Xcls_devmodel devmodel; + public Xcls_spinner spinner; public Xcls_quick_commit_tab quick_commit_tab; public Xcls_commit_message commit_message; public Xcls_createbtn createbtn; @@ -1116,6 +1117,9 @@ public class NewBranch : Object var child_0 = new Xcls_table( _this ); child_0.ref(); this.el.pack_start ( child_0.el , false,false,0 ); + var child_1 = new Xcls_spinner( _this ); + child_1.ref(); + this.el.add ( child_1.el ); } // user defined functions @@ -2231,6 +2235,31 @@ public class NewBranch : Object } + public class Xcls_spinner : Object + { + public Gtk.Spinner el; + private NewBranch _this; + + + // my vars (def) + + // ctor + public Xcls_spinner(NewBranch _owner ) + { + _this = _owner; + _this.spinner = this; + this.el = new Gtk.Spinner(); + + // my vars (dec) + + // set gobject values + this.el.hexpand = true; + this.el.vexpand = true; + } + + // user defined functions + } + public class Xcls_quick_commit_tab : Object { @@ -2251,10 +2280,10 @@ public class NewBranch : Object // set gobject values this.el.homogeneous = false; - var child_0 = new Xcls_Table52( _this ); + var child_0 = new Xcls_Table53( _this ); child_0.ref(); this.el.pack_start ( child_0.el , false,false,0 ); - var child_1 = new Xcls_ScrolledWindow56( _this ); + var child_1 = new Xcls_ScrolledWindow57( _this ); child_1.ref(); this.el.add ( child_1.el ); } @@ -2265,7 +2294,7 @@ public class NewBranch : Object } } - public class Xcls_Table52 : Object + public class Xcls_Table53 : Object { public Gtk.Table el; private NewBranch _this; @@ -2274,7 +2303,7 @@ public class NewBranch : Object // my vars (def) // ctor - public Xcls_Table52(NewBranch _owner ) + public Xcls_Table53(NewBranch _owner ) { _this = _owner; this.el = new Gtk.Table( 2, 5, true ); @@ -2286,7 +2315,7 @@ public class NewBranch : Object this.el.margin = 2; this.el.column_spacing = 4; this.el.vexpand = false; - var child_0 = new Xcls_Label53( _this ); + var child_0 = new Xcls_Label54( _this ); child_0.ref(); this.el.attach_defaults ( child_0.el , 0,1,0,1 ); var child_1 = new Xcls_commit_message( _this ); @@ -2299,7 +2328,7 @@ public class NewBranch : Object // user defined functions } - public class Xcls_Label53 : Object + public class Xcls_Label54 : Object { public Gtk.Label el; private NewBranch _this; @@ -2308,7 +2337,7 @@ public class NewBranch : Object // my vars (def) // ctor - public Xcls_Label53(NewBranch _owner ) + public Xcls_Label54(NewBranch _owner ) { _this = _owner; this.el = new Gtk.Label( "Just commit with this comment" ); @@ -2406,7 +2435,7 @@ public class NewBranch : Object } - public class Xcls_ScrolledWindow56 : Object + public class Xcls_ScrolledWindow57 : Object { public Gtk.ScrolledWindow el; private NewBranch _this; @@ -2415,7 +2444,7 @@ public class NewBranch : Object // my vars (def) // ctor - public Xcls_ScrolledWindow56(NewBranch _owner ) + public Xcls_ScrolledWindow57(NewBranch _owner ) { _this = _owner; this.el = new Gtk.ScrolledWindow( null, null ); -- 2.39.2