src/Builder4/MainWindow.vala
authorEdward <edward@roojs.com>
Thu, 11 Jun 2015 03:06:34 +0000 (11:06 +0800)
committerEdward <edward@roojs.com>
Thu, 11 Jun 2015 03:06:34 +0000 (11:06 +0800)
src/Builder4/MainWindow.vala

index 86a2313..83382ef 100644 (file)
@@ -2322,7 +2322,7 @@ public class Xcls_MainWindow : Object
 
     public class Xcls_search_entry : Object
     {
-        public Gtk.Entry el;
+        public Gtk.SearchEntry el;
         private Xcls_MainWindow  _this;
 
 
@@ -2333,7 +2333,7 @@ public class Xcls_MainWindow : Object
         {
             _this = _owner;
             _this.search_entry = this;
-            this.el = new Gtk.Entry();
+            this.el = new Gtk.SearchEntry();
 
             // my vars (dec)
 
@@ -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;
                }
+               
         }
     }