src/Builder4/ValaCompileResults.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 08:51:56 +0000 (16:51 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 08:51:56 +0000 (16:51 +0800)
src/Builder4/ValaCompileResults.vala

src/Builder4/ValaCompileResults.bjs
src/Builder4/ValaCompileResults.vala

index 0030d29..06c516f 100644 (file)
@@ -17,7 +17,7 @@
    "bool active" : false,
    "int width_request" : 600,
    "$ xns" : "Gtk",
-   "| void addLine" : "(string str) {\n\t\n\n\n}\n",
+   "| void addLine" : "(string str) {\n\tvar buf = (Gtk.SourceBuffer)this.sourceview.el.get_buffer();\n\tTextIter iter;\n\tbuf.get_end_iter (out  iter);\n\tbuf.insert(ref iter, str, str.length);\n\t/// scroll..\n\t\n\n}\n",
    "bool modal" : true,
    "items" : [
     {
index 004deb5..2089379 100644 (file)
@@ -70,9 +70,13 @@ public class Xcls_ValaCompileResults : Object
         
     }
     public void addLine (string str) {
+       var buf = (Gtk.SourceBuffer)this.sourceview.el.get_buffer();
+       TextIter iter;
+       buf.get_end_iter (out  iter);
+       buf.insert(ref iter, str, str.length);
+       /// scroll..
        
     
-    
     }
     public class Xcls_compile_view : Object
     {