Fix #7991 - better updateing of error status and char position of errors
[roobuilder] / src / Builder4 / MainWindow.bjs
index 53ac0f2..1ffe5b1 100644 (file)
            "string label" : "0 Errors",
            "xtype" : "Button",
            "| void setNotices" : [
-            "(GLib.ListStore nots, GLib.ListStore fe ) {",
+            "(GLib.ListStore nots, int ferrors ) {",
             "    BuilderApplication.showSpinner(\"\");",
             "     if (nots.get_n_items() < 1 ) {",
             "    \tthis.el.hide();",
             "    }",
             "    ",
             "    this.el.show();",
-            "    this.el.label = \"%d/%d Errors\".printf((int)fe.get_n_items(),(int)nots.get_n_items());",
+            "    this.el.label = \"%d/%d Errors\".printf(ferrors,(int)nots.get_n_items());",
             "",
             "    ",
             " ",
            "string label" : "0 Warnings",
            "xtype" : "Button",
            "| void setNotices" : [
-            "(GLib.ListStore nots, GLib.ListStore fe ) {",
+            "(GLib.ListStore nots, int ferrs ) {",
             "    ",
             "     if (nots.get_n_items() < 1 ) {",
             "    \tthis.el.hide();",
             "    }",
             "    ",
             "    this.el.show();",
-            "    this.el.label = \"%d/%d Warnings\".printf((int)fe.get_n_items(),(int)nots.get_n_items());",
+            "    this.el.label = \"%d/%d Warnings\".printf(ferrs,(int)nots.get_n_items());",
             "",
             "    ",
             " ",
            "xtype" : "Button",
            "| void setNotices" : [
             "",
-            "(GLib.ListStore nots, GLib.ListStore fe ) {",
+            "(GLib.ListStore nots, int ferrs ) {",
             "    ",
             "     if (nots.get_n_items() < 1 ) {",
             "    \tthis.el.hide();",
             "    }",
             "    ",
             "    this.el.show();",
-            "    this.el.label = \"%d/%d Depricated\".printf((int)fe.get_n_items(),(int)nots.get_n_items());",
+            "    this.el.label = \"%d/%d Depricated\".printf(ferrs,(int)nots.get_n_items());",
             "",
             "    ",
             " ",
     "\t",
     "\tthis.statusbar_errors.setNotices(",
     "\t\tpr,",
-    "\t\tthis.windowstate.file.getErrors(\"ERR\")",
+    "\t\tthis.windowstate.file.getErrorsTotal(\"ERR\")",
     "\t);",
     "\t",
     "\tthis.statusbar_warnings.setNotices(",
     "\t\tthis.windowstate.project.getErrors(\"WARN\"),",
-    "\t\tthis.windowstate.file.getErrors(\"WARN\")",
+    "\t\tthis.windowstate.file.getErrorsTotal(\"WARN\")",
     "\t);",
     "\tthis.statusbar_depricated.setNotices(",
     "\t\tthis.windowstate.project.getErrors(\"DEPR\"),",
-    "\t\tthis.windowstate.file.getErrors(\"DEPR\")",
+    "\t\tthis.windowstate.file.getErrorsTotal(\"DEPR\")",
     "\t);",
-    " ",
+    "",
     "\t_this.statusbar_run.el.hide();",
     "",
     "\tif (pr.get_n_items() < 1) {",