From 15da3950afce95108ce0fc1089f6d2f29a7c7dac Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 20 May 2015 16:49:34 +0800 Subject: [PATCH] src/Builder4/MainWindow.bjs src/Builder4/MainWindow.vala --- src/Builder4/MainWindow.bjs | 3 ++- src/Builder4/MainWindow.vala | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Builder4/MainWindow.bjs b/src/Builder4/MainWindow.bjs index 2113e5790..230c840fe 100644 --- a/src/Builder4/MainWindow.bjs +++ b/src/Builder4/MainWindow.bjs @@ -105,8 +105,9 @@ { "id" : "vbox", "* pack" : "add", - "xtype" : "VBox", + "xtype" : "Box", "$ xns" : "Gtk", + "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "$ homogeneous" : false, "items" : [ { diff --git a/src/Builder4/MainWindow.vala b/src/Builder4/MainWindow.vala index deeb59b61..8cb616286 100644 --- a/src/Builder4/MainWindow.vala +++ b/src/Builder4/MainWindow.vala @@ -390,7 +390,7 @@ public class Xcls_MainWindow : Object public class Xcls_vbox : Object { - public Gtk.VBox el; + public Gtk.Box el; private Xcls_MainWindow _this; @@ -401,11 +401,12 @@ public class Xcls_MainWindow : Object { _this = _owner; _this.vbox = this; - this.el = new Gtk.VBox( false, 0 ); + this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 ); // my vars (dec) // set gobject values + this.el.homogeneous = false; var child_0 = new Xcls_mainpane( _this ); child_0.ref(); this.el.pack_start ( child_0.el , true,true,0 ); -- 2.39.2