From: Alan Knowles Date: Tue, 18 Dec 2018 04:03:06 +0000 (+0800) Subject: Changed NewBranch.bjsNewBranch.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=9ea4411cbdd1c7c125260a0b7f7e340ff97db000 Changed NewBranch.bjsNewBranch.vala --- diff --git a/NewBranch.bjs b/NewBranch.bjs index 3874f1cb..120c6dbe 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -25,9 +25,10 @@ "bool modal" : true, "items" : [ { - "xtype" : "VBox", + "xtype" : "Box", "$ pack" : "get_content_area().add", "$ xns" : "Gtk", + "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "items" : [ { "bool homogeneous" : true, diff --git a/NewBranch.vala b/NewBranch.vala index c9bff826..f6c79bd5 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -44,7 +44,7 @@ public class NewBranch : Object this.el.default_width = 500; this.el.deletable = true; this.el.modal = true; - var child_0 = new Xcls_VBox2( _this ); + var child_0 = new Xcls_Box2( _this ); child_0.ref(); this.el.get_content_area().add ( child_0.el ); @@ -134,19 +134,19 @@ public class NewBranch : Object this.el.run(); } - public class Xcls_VBox2 : Object + public class Xcls_Box2 : Object { - public Gtk.VBox el; + public Gtk.Box el; private NewBranch _this; // my vars (def) // ctor - public Xcls_VBox2(NewBranch _owner ) + public Xcls_Box2(NewBranch _owner ) { _this = _owner; - this.el = new Gtk.VBox( true, 0 ); + this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 ); // my vars (dec)