From c968f7d2d46087c5a4a7abee684810acc4ee5d87 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 19 Mar 2024 23:13:44 +0800 Subject: [PATCH] src/Builder4/Editor.bjs src/Builder4/Editor.vala --- src/Builder4/Editor.bjs | 1 + src/Builder4/Editor.vala | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index 425081da5..14fb5cbe3 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -1034,6 +1034,7 @@ { "$ xns" : "Gtk", "* prop" : "model", + "id" : "navigationsort", "items" : [ { "$ Gtk.TreeListModelCreateModelFunc create_func" : [ diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index f14314356..bb97a815f 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -29,6 +29,7 @@ public class Editor : Object public Xcls_navigationwindow navigationwindow; public Xcls_navigation navigation; public Xcls_navigationselmodel navigationselmodel; + public Xcls_navigationsort navigationsort; public Xcls_navliststore navliststore; // my vars (def) @@ -2063,9 +2064,8 @@ public class Editor : Object { _this = _owner; _this.navigationselmodel = this; - var child_1 = new Xcls_SortListModel32( _this ); - child_1.ref(); - this.el = new Gtk.NoSelection( child_1.el ); + new Xcls_navigationsort( _this ); + this.el = new Gtk.NoSelection( _this.navigationsort.el ); // my vars (dec) @@ -2096,7 +2096,7 @@ public class Editor : Object return -1; } } - public class Xcls_SortListModel32 : Object + public class Xcls_navigationsort : Object { public Gtk.SortListModel el; private Editor _this; @@ -2105,9 +2105,10 @@ public class Editor : Object // my vars (def) // ctor - public Xcls_SortListModel32(Editor _owner ) + public Xcls_navigationsort(Editor _owner ) { _this = _owner; + _this.navigationsort = this; var child_1 = new Xcls_TreeListModel33( _this ); child_1.ref(); var child_2 = new Xcls_TreeListRowSorter35( _this ); -- 2.39.2