Changed NewBranch.bjsNewBranch.vala
authorAlan Knowles <alan@roojs.com>
Tue, 18 Dec 2018 04:03:06 +0000 (12:03 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 18 Dec 2018 04:03:06 +0000 (12:03 +0800)
NewBranch.bjs
NewBranch.vala

index 3874f1c..120c6db 100644 (file)
    "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,
index c9bff82..f6c79bd 100644 (file)
@@ -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)