From 041f15e44f7515a35367b1d7a6dd6f87bbc9d6d9 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 2 Jun 2015 19:50:19 +0800 Subject: [PATCH] src/Builder4/MainWindow.bjs src/Builder4/MainWindow.vala --- src/Builder4/MainWindow.bjs | 1 + src/Builder4/MainWindow.vala | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Builder4/MainWindow.bjs b/src/Builder4/MainWindow.bjs index 2b49b3f22..8c56099d1 100644 --- a/src/Builder4/MainWindow.bjs +++ b/src/Builder4/MainWindow.bjs @@ -610,6 +610,7 @@ "$ xns" : "Gtk" }, { + "id" : "search_entry", "* pack" : "pack_start,false,true,0", "xtype" : "Entry", "$ xns" : "Gtk" diff --git a/src/Builder4/MainWindow.vala b/src/Builder4/MainWindow.vala index 174e49f63..6cf7d51cb 100644 --- a/src/Builder4/MainWindow.vala +++ b/src/Builder4/MainWindow.vala @@ -38,6 +38,7 @@ public class Xcls_MainWindow : Object public Xcls_addfilebutton addfilebutton; public Xcls_delprojectbutton delprojectbutton; public Xcls_statusbar statusbar; + public Xcls_search_entry search_entry; public Xcls_search_results search_results; public Xcls_statusbar_errors statusbar_errors; public Xcls_statusbar_warnings statusbar_warnings; @@ -2223,7 +2224,7 @@ public class Xcls_MainWindow : Object var child_1 = new Xcls_statusbar( _this ); child_1.ref(); this.el.pack_start ( child_1.el , true,true,0 ); - var child_2 = new Xcls_Entry69( _this ); + var child_2 = new Xcls_search_entry( _this ); child_2.ref(); this.el.pack_start ( child_2.el , false,true,0 ); var child_3 = new Xcls_MenuBar70( _this ); @@ -2299,7 +2300,7 @@ public class Xcls_MainWindow : Object // user defined functions } - public class Xcls_Entry69 : Object + public class Xcls_search_entry : Object { public Gtk.Entry el; private Xcls_MainWindow _this; @@ -2308,9 +2309,10 @@ public class Xcls_MainWindow : Object // my vars (def) // ctor - public Xcls_Entry69(Xcls_MainWindow _owner ) + public Xcls_search_entry(Xcls_MainWindow _owner ) { _this = _owner; + _this.search_entry = this; this.el = new Gtk.Entry(); // my vars (dec) -- 2.39.2