src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 08:49:34 +0000 (16:49 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 08:49:34 +0000 (16:49 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index 2113e57..230c840 100644 (file)
     {
      "id" : "vbox",
      "* pack" : "add",
-     "xtype" : "VBox",
+     "xtype" : "Box",
      "$ xns" : "Gtk",
+     "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
      "$ homogeneous" : false,
      "items" : [
       {
index deeb59b..8cb6162 100644 (file)
@@ -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 );