From: Alan Knowles Date: Tue, 30 Oct 2018 04:40:50 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=8d749599dbb04047b509de704568fdd808ef05f0 Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index fc18cde8..91593db6 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -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", diff --git a/Clones.vala b/Clones.vala index 146d0d20..ae5552f8 100644 --- a/Clones.vala +++ b/Clones.vala @@ -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)