src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Sun, 17 Mar 2024 04:07:35 +0000 (12:07 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 17 Mar 2024 04:07:35 +0000 (12:07 +0800)
src/Builder4/Editor.vala

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

index 63d421e..56e3ae3 100644 (file)
           },
           {
            "$ xns" : "Gtk",
-           "* prop" : "model",
+           "* prop" : "modelx",
            "id" : "navigationselmodel",
            "items" : [
             {
index ee795b3..b2b4b9b 100644 (file)
@@ -1766,16 +1766,17 @@ public class Editor : Object
                {
                        _this = _owner;
                        _this.navigation = this;
-                       new Xcls_navigationselmodel( _this );
-                       this.el = new Gtk.ColumnView( _this.navigationselmodel.el );
+                       this.el = new Gtk.ColumnView( null );
 
                        // my vars (dec)
 
                        // set gobject values
                        this.el.name = "editor-navigation";
-                       var child_2 = new Xcls_ColumnViewColumn29( _this );
-                       child_2.ref();
-                       this.el.append_column( child_2.el );
+                       var child_1 = new Xcls_ColumnViewColumn29( _this );
+                       child_1.ref();
+                       this.el.append_column( child_1.el );
+                       new Xcls_navigationselmodel( _this );
+                       this.el.modelx = _this.navigationselmodel.el;
                        var child_3 = new Xcls_GestureClick34( _this );
                        child_3.ref();
                        this.el.add_controller(  child_3.el );