src/Builder4/WindowRooView.bjs
[app.Builder.js] / src / Builder4 / ValaCompileErrors.vala
index 9607b57..7989b43 100644 (file)
@@ -35,6 +35,7 @@ public class Xcls_ValaCompileErrors : Object
         // set gobject values
         this.el.width_request = 900;
         this.el.height_request = 800;
+        this.el.hexpand = false;
         this.el.modal = true;
         this.el.position = Gtk.PositionType.TOP;
         var child_0 = new Xcls_compile_view( _this );
@@ -67,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  = "";
@@ -133,12 +134,13 @@ public class Xcls_ValaCompileErrors : Object
 
             // set gobject values
             this.el.homogeneous = false;
+            this.el.hexpand = false;
             var child_0 = new Xcls_Box3( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false,0 );
             var child_1 = new Xcls_ScrolledWindow5( _this );
             child_1.ref();
-            this.el.add (  child_1.el  );
+            this.el.pack_end (  child_1.el , true,true,0 );
         }
 
         // user defined functions
@@ -253,7 +255,7 @@ public class Xcls_ValaCompileErrors : Object
             {
              var description = new Pango.FontDescription();
                 description.set_size(8000);
-                this.el.modify_font(description);
+                this.el.override_font(description);
             
             }
 
@@ -282,17 +284,17 @@ public class Xcls_ValaCompileErrors : Object
                  var mod = _this.compile_result_store.el;
                 mod.get_iter (out iter, path);
                 
-                 
-                
-                
+                  
                 
                 // var val = "";
                 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,12 +312,18 @@ 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;
                 
                 }
-                 return false;
+                
+                var pf = JsRender.JsRender.factory("PlainFile", p, fname);
+                _this.window.windowstate.fileViewOpen(pf,line);
+                
+                // try hiding the left nav..
+             
+                return false;
                 
               });
         }