src/Builder4/Editor.bjs
[app.Builder.js] / src / Builder4 / Editor.vala
index 693a10a..fe53b25 100644 (file)
@@ -122,6 +122,12 @@ public class Editor : Object
        this.searchcontext = new Gtk.SourceSearchContext(this.buffer.el,s);
        this.searchcontext .set_highlight(true);
        s.set_search_text(txt);
+       Gtk.TextIter beg, st,en;
+        
+       this.buffer.el.get_start_iter(out beg);
+       this.searchcontext.forward(beg, out st, out en);
+       
+       
        return this.searchcontext.get_occurrences_count();
     
      
@@ -134,7 +140,7 @@ public class Editor : Object
         this.ptype = "";
         this.key  = "";
         this.node = null;
-    
+       this.searchcontext = null;
         
         if (file.xtype != "PlainFile") {
         
@@ -159,6 +165,9 @@ public class Editor : Object
         }
     
            
+    }
+    public void forwardSearch () {
+    
     }
     public class Xcls_Box2 : Object
     {