"build_module" : "builder",
"items" : [
{
+ "# Json.Object notices" : "",
+ "# Xcls_MainWindow window" : "",
"$ xns" : "Gtk",
"Gtk.PositionType position" : "Gtk.PositionType.TOP",
- "JsRender.JsRender? file" : "",
- "Json.Object notices" : "",
- "Xcls_MainWindow window" : "",
"bool active" : false,
"bool hexpand" : false,
"bool modal" : true,
"(Json.Object tree, Gtk.Widget onbtn) {",
"",
" ",
- " this.file = null;",
+ " ",
" this.notices = tree;",
" ",
" //print(\"looking for %s\\n\", id);",
" var store = this.compile_result_store.el; ",
" ",
" store.clear();",
- " ",
+ " \tGtk.TreeIter? expand = null;",
" ",
" tree.foreach_member((obj, file, node) => {",
" // id line \"display text\", file",
" ",
" var title = GLib.Path.get_basename(GLib.Path.get_dirname( file)) + \"/\" + GLib.Path.get_basename( file) ;",
" Gtk.TreeIter iter;",
- " print(\"Add file %s\", title);",
+ " GLib.debug(\"Add file %s\", title);",
" store.append(out iter, null);",
" var lines = tree.get_object_member(file);",
" title += \" (\" + lines.get_size().to_string() + \")\";",
" \t-1);",
" ",
" if (this.window.windowstate.file.path == file) {",
- " ",
- " \t_this.compile_tree.el.expand_row( store.get_path(iter) , true);",
+ " GLib.debug(\"Expanding Row: %s\", file);",
+ " expand = iter ;",
+ "",
" ",
" }",
" ",
"\t\t\t\tmsg += ar.get_string_element(i);",
"\t\t }",
"\t\t Gtk.TreeIter citer; ",
- "\t\t print(\"Add line %s\", line);",
+ "\t\t GLib.debug(\"Add line %s\", line);",
"\t\t store.append(out citer, iter);",
"\t\t store.set(citer, ",
"\t\t 0, file + \":\" + int.parse(line).to_string(\"%09d\"), ",
" }",
" this.el.show_all();",
" ",
+ " \tif (expand != null) {",
+ " \t_this.compile_tree.el.expand_row( store.get_path(expand) , true);",
+ "\t}",
+ " ",
" while(Gtk.events_pending()) { ",
" Gtk.main_iteration();",
" } ",
// my vars (def)
public Xcls_MainWindow window;
public Json.Object notices;
- public JsRender.JsRender? file;
public bool active;
// ctor
public void show (Json.Object tree, Gtk.Widget onbtn) {
- this.file = null;
+
this.notices = tree;
//print("looking for %s\n", id);
var store = this.compile_result_store.el;
store.clear();
-
+ Gtk.TreeIter? expand = null;
tree.foreach_member((obj, file, node) => {
// id line "display text", file
var title = GLib.Path.get_basename(GLib.Path.get_dirname( file)) + "/" + GLib.Path.get_basename( file) ;
Gtk.TreeIter iter;
- print("Add file %s", title);
+ GLib.debug("Add file %s", title);
store.append(out iter, null);
var lines = tree.get_object_member(file);
title += " (" + lines.get_size().to_string() + ")";
-1);
if (this.window.windowstate.file.path == file) {
-
- _this.compile_tree.el.expand_row( store.get_path(iter) , true);
+ GLib.debug("Expanding Row: %s", file);
+ expand = iter ;
+
}
msg += ar.get_string_element(i);
}
Gtk.TreeIter citer;
- print("Add line %s", line);
+ GLib.debug("Add line %s", line);
store.append(out citer, iter);
store.set(citer,
0, file + ":" + int.parse(line).to_string("%09d"),
}
this.el.show_all();
+ if (expand != null) {
+ _this.compile_tree.el.expand_row( store.get_path(expand) , true);
+ }
+
while(Gtk.events_pending()) {
Gtk.main_iteration();
}