src/Builder4/ValaCompileResults.bjs wip_alan_T7315_change_to_single_compiler_and origin/wip_alan_T7315_change_to_single_compiler_and
authorAlan <alan@roojs.com>
Tue, 19 Jul 2022 08:35:32 +0000 (16:35 +0800)
committerAlan <alan@roojs.com>
Tue, 19 Jul 2022 08:35:32 +0000 (16:35 +0800)
src/Builder4/ValaCompileResults.vala

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

index bfa9976..7e20e43 100644 (file)
    "xtype" : "Popover",
    "| void addLine" : [
     "(string str) {",
+    "\t",
+    "\tif (this.window.windowstate.project.fn != BuilderApplication.valasource.file.project.fn) {",
+    "\t\t// not our project.",
+    "\t\treturn;",
+    "\t}",
+    "\t",
     "\tvar buf = (Gtk.SourceBuffer)this.sourceview.el.get_buffer();",
     "\tGtk.TextIter iter;",
     "\tbuf.get_end_iter (out  iter);",
index 18c4b44..a36bb93 100644 (file)
@@ -72,6 +72,12 @@ public class Xcls_ValaCompileResults : Object
         
     }
     public void addLine (string str) {
+       
+       if (this.window.windowstate.project.fn != BuilderApplication.valasource.file.project.fn) {
+               // not our project.
+               return;
+       }
+       
        var buf = (Gtk.SourceBuffer)this.sourceview.el.get_buffer();
        Gtk.TextIter iter;
        buf.get_end_iter (out  iter);