src/Builder4/GtkView.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 29 Apr 2015 09:00:20 +0000 (17:00 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 29 Apr 2015 09:00:20 +0000 (17:00 +0800)
src/Builder4/GtkView.vala

src/Builder4/GtkView.bjs
src/Builder4/GtkView.vala

index 9dc9923..d172a65 100644 (file)
@@ -20,7 +20,7 @@
    "xtype" : "VPaned",
    "# JsRender.JsRender file" : "null",
    "int height" : 0,
-   "| void compileNotice" : "( string type,   string file,   int line, string  message) {\n    // if type = \"START\"... then we reset the tree?\n    // the issue is that the compiler is continually going..\n    // so editing a file etc.. may change things.?\n    // probably not an issue.\n    if (type ==\"START\") {\n        // reset the tree;\n        return;\n    }\n    \n    \n    // tree:\n    \n      // error_type\n         // filename\n            // line - message\n            \n     // sort (and 'id'?)\n     \n        // 0-2 : fname : line\n     // display\n      \n    \n}\n",
+   "| void compileNotice" : "( string type,   string file,   int line, string  message) {\n    // if type = \"START\"... then we reset the tree?\n    // the issue is that the compiler is continually going..\n    // so editing a file etc.. may change things.?\n    // probably not an issue.\n    if (type ==\"START\") {\n        // reset the tree;\n        return;\n    }\n    var top = 0;\n    switch(type) {\n        case \"ERR\":\n            top = 0;\n            break;\n        case \"WARN\":\n            top =1;\n            break;\n        case \"DEPR\":\n            top =2;\n            break;\n    }\n    \n     \n    // tree:\n    \n      // error_type\n         // filename\n            // line - message\n            \n     // sort (and 'id'?)\n     \n        // 0-2 : fname : line\n     // display\n      \n    \n}\n",
    "$ xns" : "Gtk",
    "items" : [
     {
index a1f0576..1e1b3b5 100644 (file)
@@ -146,8 +146,20 @@ public class Xcls_GtkView : Object
             // reset the tree;
             return;
         }
+        var top = 0;
+        switch(type) {
+            case "ERR":
+                top = 0;
+                break;
+            case "WARN":
+                top =1;
+                break;
+            case "DEPR":
+                top =2;
+                break;
+        }
         
-        
+         
         // tree:
         
           // error_type