From f0d04e794c8f15f7568c834f8891a02c9415a35e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 3 Jun 2015 13:48:48 +0800 Subject: [PATCH] src/Builder4/MainWindow.bjs src/Builder4/MainWindow.vala --- src/Builder4/MainWindow.bjs | 2 +- src/Builder4/MainWindow.vala | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Builder4/MainWindow.bjs b/src/Builder4/MainWindow.bjs index 0aa76a742..29bef1487 100644 --- a/src/Builder4/MainWindow.bjs +++ b/src/Builder4/MainWindow.bjs @@ -620,7 +620,7 @@ "* pack" : "pack_start,false,true,0", "xtype" : "Entry", "$ xns" : "Gtk", - "| void forwardSearch" : "(bool change_focus) {\n\tswitch(_this.windowstate.state) {\n\t\tcase WindowState.State.CODEONLY:\n\t\tcase WindowState.State.CODE:\n\t\t\t// search the code being edited..\n\t\t\t_this.windowstate.code_editor.forwardSearch();\n\t\t\t\n\t\t\tbreak;\n\t\tcase WindowState.State.PREVIEW:\n\t\t\tif (_this.windowstate.file.xtype == \"Gtk\") {\n\t\t\t\t_this.windowstate.window_gladeview.forwardSearch(change_focus);\n\t\t\t} else { \n\t\t\t\t _this.windowstate.window_rooview.forwardSearch(change_focus);\n\t\t\t}\n\t\t\n\t\t\tbreak;\n\t}\n}\n" + "| void forwardSearch" : "(bool change_focus) {\n\tswitch(_this.windowstate.state) {\n\t\tcase WindowState.State.CODEONLY:\n\t\tcase WindowState.State.CODE:\n\t\t\t// search the code being edited..\n\t\t\t_this.windowstate.code_editor.forwardSearch(change_focus);\n\t\t\t\n\t\t\tbreak;\n\t\tcase WindowState.State.PREVIEW:\n\t\t\tif (_this.windowstate.file.xtype == \"Gtk\") {\n\t\t\t\t_this.windowstate.window_gladeview.forwardSearch(change_focus);\n\t\t\t} else { \n\t\t\t\t _this.windowstate.window_rooview.forwardSearch(change_focus);\n\t\t\t}\n\t\t\n\t\t\tbreak;\n\t}\n\t\n}\n" }, { "* pack" : "pack_end,false,true,0", diff --git a/src/Builder4/MainWindow.vala b/src/Builder4/MainWindow.vala index 86a231304..6b603fbed 100644 --- a/src/Builder4/MainWindow.vala +++ b/src/Builder4/MainWindow.vala @@ -2397,7 +2397,7 @@ public class Xcls_MainWindow : Object case WindowState.State.CODEONLY: case WindowState.State.CODE: // search the code being edited.. - _this.windowstate.code_editor.forwardSearch(); + _this.windowstate.code_editor.forwardSearch(change_focus); break; case WindowState.State.PREVIEW: @@ -2409,6 +2409,7 @@ public class Xcls_MainWindow : Object break; } + } } -- 2.39.2