From: Alan Knowles Date: Tue, 26 Mar 2024 15:49:23 +0000 (+0800) Subject: src/Builder4/Editor.bjs X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=5956550ba7f87d954b0d4919f992ad1eee9b03c4;p=roobuilder src/Builder4/Editor.bjs src/Builder4/Editor.vala --- diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index a568db1f7..6371d2199 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -29,6 +29,7 @@ "bool resize_start_child" : false, "bool shrink_end_child" : false, "bool shrink_start_child" : false, + "id" : "paned", "items" : [ { "$ xns" : "Gtk", diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index a8d8f2973..9a9908b25 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -12,6 +12,7 @@ public class Editor : Object } return _Editor; } + public Xcls_paned paned; public Xcls_save_button save_button; public Xcls_helper helper; public Xcls_close_btn close_btn; @@ -71,9 +72,8 @@ public class Editor : Object this.el.homogeneous = false; this.el.hexpand = true; this.el.vexpand = true; - var child_1 = new Xcls_Paned1( _this ); - child_1.ref(); - this.el.append( child_1.el ); + new Xcls_paned( _this ); + this.el.append( _this.paned.el ); } // user defined functions @@ -402,7 +402,7 @@ public class Editor : Object return false; }); } - public class Xcls_Paned1 : Object + public class Xcls_paned : Object { public Gtk.Paned el; private Editor _this; @@ -411,9 +411,10 @@ public class Editor : Object // my vars (def) // ctor - public Xcls_Paned1(Editor _owner ) + public Xcls_paned(Editor _owner ) { _this = _owner; + _this.paned = this; this.el = new Gtk.Paned( Gtk.Orientation.HORIZONTAL ); // my vars (dec)