From 9ea4411cbdd1c7c125260a0b7f7e340ff97db000 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 18 Dec 2018 12:03:06 +0800 Subject: [PATCH] Changed NewBranch.bjsNewBranch.vala --- NewBranch.bjs | 3 ++- NewBranch.vala | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) 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) -- 2.39.2