src/Builder4/ValaCompileErrors.bjs
authorAlan Knowles <alan@roojs.com>
Sun, 17 May 2015 11:30:04 +0000 (19:30 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 17 May 2015 11:30:04 +0000 (19:30 +0800)
src/Builder4/ValaCompileErrors.vala

src/Builder4/ValaCompileErrors.bjs
src/Builder4/ValaCompileErrors.vala

index 4eae4f9..11f0bbc 100644 (file)
@@ -53,7 +53,7 @@
          "items" : [
           {
            "listeners" : {
-            "cursor_changed" : "() => {\n    var sel = this.el.get_selection();\n \n            if (sel.count_selected_rows() < 1) {\n\n                print(\"selected rows < 1\\n\");\n                //??this.mo \n                return  ;\n            }\n                \n                //console.log('changed');\n             \n             Gtk.TreeIter iter;\n             Gtk.TreeModel mod;\n            sel.get_selected(out mod, out iter);\n            /*\n             store.set(citer, \n                    0, file + \":\" + line, \n                    1, int.parse(line), \n                    2, GLib.Markup.escape_text(line + \": \" + msg), \n                    3, file,-1);\n            \n            });\n            */\n            \n            \n            \n            // var val = \"\";\n            GLib.Value value;\n            _this.compile_result_store.el.get_value(iter, 3, out value);\n            var fname = (string)value;\n            GLib.Value lvalue;\n            _this.compile_result_store.el.get_value(iter, 1, out lvalue);\n            var line = (int) lvalue;\n            \n            this.sourceview.loadFile(file, line);\n            \n            \n            \n            \n}\n             "
+            "cursor_changed" : "() => {\n    var sel = this.el.get_selection();\n \n            if (sel.count_selected_rows() < 1) {\n\n                print(\"selected rows < 1\\n\");\n                //??this.mo \n                return  ;\n            }\n                \n                //console.log('changed');\n             \n             Gtk.TreeIter iter;\n             Gtk.TreeModel mod;\n            sel.get_selected(out mod, out iter);\n            /*\n             store.set(citer, \n                    0, file + \":\" + line, \n                    1, int.parse(line), \n                    2, GLib.Markup.escape_text(line + \": \" + msg), \n                    3, file,-1);\n            \n            });\n            */\n            \n            \n            \n            // var val = \"\";\n            GLib.Value value;\n            _this.compile_result_store.el.get_value(iter, 3, out value);\n            var fname = (string)value;\n            GLib.Value lvalue;\n            _this.compile_result_store.el.get_value(iter, 1, out lvalue);\n            var line = (int) lvalue;\n            \n            _this.sourceview.loadFile(file, line);\n            \n            \n            \n            \n}\n             "
            },
            "id" : "compile_tree",
            "* init" : "{\n var description = new Pango.FontDescription();\n    description.set_size(8000);\n    this.el.modify_font(description);\n\n}\n",
index c9cfd21..86f675b 100644 (file)
@@ -301,7 +301,7 @@ public class Xcls_ValaCompileErrors : Object
                         _this.compile_result_store.el.get_value(iter, 1, out lvalue);
                         var line = (int) lvalue;
                         
-                        this.sourceview.loadFile(file, line);
+                        _this.sourceview.loadFile(file, line);