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

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

index 56e3ae3..2f6f18f 100644 (file)
           },
           {
            "$ xns" : "Gtk",
-           "* prop" : "modelx",
+           "* prop" : "model",
            "id" : "navigationselmodel",
            "items" : [
             {
               ""
              ],
              "$ xns" : "Gtk",
-             "* prop" : "model",
+             "* prop" : "modelx",
              "bool autoexpand" : true,
              "bool passthrough" : false,
              "items" : [
index b2b4b9b..68860ce 100644 (file)
@@ -1766,17 +1766,16 @@ public class Editor : Object
                {
                        _this = _owner;
                        _this.navigation = this;
-                       this.el = new Gtk.ColumnView( null );
+                       new Xcls_navigationselmodel( _this );
+                       this.el = new Gtk.ColumnView( _this.navigationselmodel.el );
 
                        // my vars (dec)
 
                        // set gobject values
                        this.el.name = "editor-navigation";
-                       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_2 = new Xcls_ColumnViewColumn29( _this );
+                       child_2.ref();
+                       this.el.append_column( child_2.el );
                        var child_3 = new Xcls_GestureClick34( _this );
                        child_3.ref();
                        this.el.add_controller(  child_3.el );
@@ -1962,13 +1961,14 @@ public class Editor : Object
                {
                        _this = _owner;
                        _this.navigationselmodel = this;
-                       var child_1 = new Xcls_TreeListModel32( _this );
-                       child_1.ref();
-                       this.el = new Gtk.NoSelection( child_1.el );
+                       this.el = new Gtk.NoSelection( null );
 
                        // my vars (dec)
 
                        // set gobject values
+                       var child_1 = new Xcls_TreeListModel32( _this );
+                       child_1.ref();
+                       this.el.modelx = child_1.el;
                }
 
                // user defined functions