From 268f4952f8a4eb2e03910e4d36c22f9bb3377fed Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 Mar 2024 23:35:42 +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 2c76d6727..677d7d558 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -1062,6 +1062,7 @@ "bool hexpand" : true, "bool vexpand" : true, "bool visible" : false, + "id" : "navigation_holder", "int spacing" : 0, "int width_request" : 120, "items" : [ diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index 3d520a0b3..658de2c9d 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -27,6 +27,7 @@ public class Editor : Object public Xcls_case_sensitive case_sensitive; public Xcls_regex regex; public Xcls_multiline multiline; + public Xcls_navigation_holder navigation_holder; public Xcls_navigationwindow navigationwindow; public Xcls_navigation navigation; public Xcls_navigationselmodel navigationselmodel; @@ -423,9 +424,8 @@ public class Editor : Object var child_1 = new Xcls_Box2( _this ); child_1.ref(); this.el.start_child = child_1.el; - var child_2 = new Xcls_Box27( _this ); - child_2.ref(); - this.el.end_child = child_2.el; + new Xcls_navigation_holder( _this ); + this.el.end_child = _this.navigation_holder.el; } // user defined functions @@ -1863,7 +1863,7 @@ public class Editor : Object - public class Xcls_Box27 : Object + public class Xcls_navigation_holder : Object { public Gtk.Box el; private Editor _this; @@ -1872,9 +1872,10 @@ public class Editor : Object // my vars (def) // ctor - public Xcls_Box27(Editor _owner ) + public Xcls_navigation_holder(Editor _owner ) { _this = _owner; + _this.navigation_holder = this; this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 ); // my vars (dec) -- 2.39.2