src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 26 Mar 2024 15:49:23 +0000 (23:49 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 Mar 2024 15:49:23 +0000 (23:49 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index a568db1..6371d21 100644 (file)
@@ -29,6 +29,7 @@
      "bool resize_start_child" : false,
      "bool shrink_end_child" : false,
      "bool shrink_start_child" : false,
+     "id" : "paned",
      "items" : [
       {
        "$ xns" : "Gtk",
index a8d8f29..9a9908b 100644 (file)
@@ -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)