From a3eb51eac18b303361264403df77a4092a0baa9e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 24 Dec 2018 15:45:29 +0800 Subject: [PATCH] Ticket.bjs Ticket.vala --- Ticket.bjs | 1 + Ticket.vala | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Ticket.bjs b/Ticket.bjs index 31fc2594..e678f29a 100644 --- a/Ticket.bjs +++ b/Ticket.bjs @@ -30,6 +30,7 @@ "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "items" : [ { + "id" : "table", "bool homogeneous" : true, "bool expand" : false, "xtype" : "Table", diff --git a/Ticket.vala b/Ticket.vala index d8b10d9a..76d25d1c 100644 --- a/Ticket.vala +++ b/Ticket.vala @@ -12,6 +12,7 @@ public class Ticket : Object } return _Ticket; } + public Xcls_table table; public Xcls_project_id project_id; public Xcls_prcellrenderer prcellrenderer; public Xcls_prmodel prmodel; @@ -159,7 +160,7 @@ public class Ticket : Object // my vars (dec) // set gobject values - var child_0 = new Xcls_Table3( _this ); + 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 ); @@ -169,7 +170,7 @@ public class Ticket : Object // user defined functions } - public class Xcls_Table3 : Object + public class Xcls_table : Object { public Gtk.Table el; private Ticket _this; @@ -178,9 +179,10 @@ public class Ticket : Object // my vars (def) // ctor - public Xcls_Table3(Ticket _owner ) + public Xcls_table(Ticket _owner ) { _this = _owner; + _this.table = this; this.el = new Gtk.Table( 14, 4, true ); // my vars (dec) -- 2.39.2