Clones.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 04:40:50 +0000 (12:40 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 04:40:50 +0000 (12:40 +0800)
Clones.vala

Clones.bjs
Clones.vala

index fc18cde..91593db 100644 (file)
@@ -25,8 +25,9 @@
     {
      "id" : "Clones",
      "xtype" : "Box",
-     "$ pack" : " function(p,e) {\n        p.el.get_content_area().pack_start(e.el,true,true,0)\n    }\n",
+     "$ pack" : "get_content_area().add ",
      "$ xns" : "Gtk",
+     "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
      "items" : [
       {
        "* pack" : "pack_start,false,true",
index 146d0d2..ae5552f 100644 (file)
@@ -36,10 +36,7 @@ public class Clones : Object
         this.el.modal = true;
         var child_0 = new Xcls_Clones( _this );
         child_0.ref();
-        this.el.function(p (  child_0.el , e) {
-        p.el.get_content_area().pack_start(e.el,true,true,0)
-    }
- );
+        this.el.get_content_area().add (  child_0.el  );
         var child_1 = new Xcls_ok_button( _this );
         child_1.ref();
         this.el.add_action_widget (  child_1.el , 1  );
@@ -92,7 +89,7 @@ public class Clones : Object
         {
             _this = _owner;
             _this.Clones = this;
-            this.el = new Gtk.Box( null, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
 
             // my vars (dec)