From 2fc9c4149219d09cf5d14181ab981097d6c3a9ec Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 20 May 2015 16:51:06 +0800 Subject: [PATCH] src/Builder4/MainWindow.bjs src/Builder4/MainWindow.vala --- src/Builder4/MainWindow.bjs | 9 ++++++--- src/Builder4/MainWindow.vala | 7 ++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Builder4/MainWindow.bjs b/src/Builder4/MainWindow.bjs index e3a6176e9..f117d3517 100644 --- a/src/Builder4/MainWindow.bjs +++ b/src/Builder4/MainWindow.bjs @@ -137,13 +137,15 @@ "id" : "tree", "xtype" : "Box", "* pack" : "add1", - "$ xns" : "Gtk" + "$ xns" : "Gtk", + "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL" }, { "id" : "props", - "xtype" : "VBox", + "xtype" : "Box", "* pack" : "add2", - "$ xns" : "Gtk" + "$ xns" : "Gtk", + "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL" } ] } @@ -153,6 +155,7 @@ "* pack" : "add2", "xtype" : "VBox", "$ xns" : "Gtk", + "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "items" : [ { "listeners" : { diff --git a/src/Builder4/MainWindow.vala b/src/Builder4/MainWindow.vala index bc81f9faf..14678ccd9 100644 --- a/src/Builder4/MainWindow.vala +++ b/src/Builder4/MainWindow.vala @@ -514,7 +514,7 @@ public class Xcls_MainWindow : Object { _this = _owner; _this.tree = this; - this.el = new Gtk.Box( null, 0 ); + this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 ); // my vars (dec) @@ -526,7 +526,7 @@ public class Xcls_MainWindow : Object public class Xcls_props : Object { - public Gtk.VBox el; + public Gtk.Box el; private Xcls_MainWindow _this; @@ -537,7 +537,7 @@ public class Xcls_MainWindow : Object { _this = _owner; _this.props = this; - this.el = new Gtk.VBox( true, 0 ); + this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 ); // my vars (dec) @@ -566,6 +566,7 @@ public class Xcls_MainWindow : Object // my vars (dec) // set gobject values + this.el.orientation = Gtk.Orientation.VERTICAL; var child_0 = new Xcls_clutterembed( _this ); child_0.ref(); this.el.pack_start ( child_0.el , true,true,0 ); -- 2.39.2