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

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

index e3a6176..f117d35 100644 (file)
              "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"
             }
            ]
           }
          "* pack" : "add2",
          "xtype" : "VBox",
          "$ xns" : "Gtk",
+         "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
          "items" : [
           {
            "listeners" : {
index bc81f9f..14678cc 100644 (file)
@@ -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 );