src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Sat, 16 Mar 2024 09:16:53 +0000 (17:16 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 16 Mar 2024 09:16:53 +0000 (17:16 +0800)
src/Builder4/Editor.vala

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

index cdb933f..4a453a6 100644 (file)
                "$ GLib.Type item_type" : "typeof(JsRender.Node)",
                "$ xns" : "GLib",
                "* prop" : "root",
+               "id" : "navliststore",
                "xtype" : "ListStore"
               }
              ],
index 1df864a..c74009d 100644 (file)
@@ -28,6 +28,7 @@ public class Editor : Object
        public Xcls_multiline multiline;
        public Xcls_navigationwindow navigationwindow;
        public Xcls_navigation navigation;
+       public Xcls_navliststore navliststore;
 
                // my vars (def)
        public int pos_root_x;
@@ -1930,9 +1931,8 @@ public class Editor : Object
                public Xcls_TreeListModel32(Editor _owner )
                {
                        _this = _owner;
-                       var child_1 = new Xcls_ListStore33( _this );
-                       child_1.ref();
-                       this.el = new Gtk.TreeListModel( child_1.el, false, true, (item) => {
+                       new Xcls_navliststore( _this );
+                       this.el = new Gtk.TreeListModel( _this.navliststore.el, false, true, (item) => {
        //fixme...
        return ((JsRender.Node)item).childstore;
 }
@@ -1945,7 +1945,7 @@ public class Editor : Object
 
                // user defined functions
        }
-       public class Xcls_ListStore33 : Object
+       public class Xcls_navliststore : Object
        {
                public GLib.ListStore el;
                private Editor  _this;
@@ -1954,9 +1954,10 @@ public class Editor : Object
                        // my vars (def)
 
                // ctor
-               public Xcls_ListStore33(Editor _owner )
+               public Xcls_navliststore(Editor _owner )
                {
                        _this = _owner;
+                       _this.navliststore = this;
                        this.el = new GLib.ListStore( typeof(JsRender.Node) );
 
                        // my vars (dec)