src/Builder4/WindowRooView.bjs
[app.Builder.js] / src / Builder4 / ValaCompileErrors.vala
index 4cbf543..7989b43 100644 (file)
@@ -35,7 +35,7 @@ public class Xcls_ValaCompileErrors : Object
         // set gobject values
         this.el.width_request = 900;
         this.el.height_request = 800;
-        this.el.hexpand = true;
+        this.el.hexpand = false;
         this.el.modal = true;
         this.el.position = Gtk.PositionType.TOP;
         var child_0 = new Xcls_compile_view( _this );
@@ -68,7 +68,7 @@ public class Xcls_ValaCompileErrors : Object
                 store.append(out iter, null);
                 var lines = tree.get_object_member(file);
                 title += " (" + lines.get_size().to_string() + ")";
-                store.set(iter, 0, file, 1, 0, 2, title, 3, file,-1);
+                store.set(iter, 0, file, 1, -1, 2, title, 3, file,-1);
                 
                 lines.foreach_member((obja, line, nodea) => {
                     var msg  = "";
@@ -134,7 +134,7 @@ public class Xcls_ValaCompileErrors : Object
 
             // set gobject values
             this.el.homogeneous = false;
-            this.el.hexpand = true;
+            this.el.hexpand = false;
             var child_0 = new Xcls_Box3( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false,0 );
@@ -290,9 +290,11 @@ public class Xcls_ValaCompileErrors : Object
                 GLib.Value value;
                 _this.compile_result_store.el.get_value(iter, 3, out value);
                 var fname = (string)value;
-                //GLib.Value lvalue;
-                //_this.compile_result_store.el.get_value(iter, 1, out lvalue);
-                //var line = (int) lvalue;
+                GLib.Value lvalue;
+                _this.compile_result_store.el.get_value(iter, 1, out lvalue);
+                var line = (int) lvalue;
+                
+                print("open %s @ %d\n", fname, line);
                 
                 
                var  bjsf = "";
@@ -310,14 +312,14 @@ public class Xcls_ValaCompileErrors : Object
                     
                 var jsr = p.getByPath(bjsf);
                 if (jsr != null) {
-                    _this.window.windowstate.fileViewOpen(jsr);
+                    _this.window.windowstate.fileViewOpen(jsr, line);
                     
                     return false;
                 
                 }
                 
                 var pf = JsRender.JsRender.factory("PlainFile", p, fname);
-                _this.window.windowstate.fileViewOpen(pf);
+                _this.window.windowstate.fileViewOpen(pf,line);
                 
                 // try hiding the left nav..