2 "build_module" : "builder",
3 "gen_extended" : false,
7 "Gtk.PositionType position" : "Gtk.PositionType.TOP",
8 "Xcls_MainWindow window" : "",
11 "id" : "ValaCompileResults",
12 "int height_request" : 400,
13 "int width_request" : 600,
17 "* pack" : "set_child",
18 "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
19 "bool hexpand" : true,
20 "bool vexpand" : true,
21 "gboolean homogeneous" : false,
22 "id" : "compile_view",
28 " this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);",
34 "bool hexpand" : true,
35 "bool vexpand" : true,
38 "$ xns" : "GtkSource",
42 " \tthis.css = new Gtk.CssProvider();",
44 "\tthis.css.load_from_string(",
45 "\t\t\"#compile-results-view { font: 10px monospace ;}\"",
48 "\t\t\tGtk.StyleContext.add_provider_for_display(",
49 "\t\tthis.el.get_display(),",
51 "\t\tGtk.STYLE_PROVIDER_PRIORITY_APPLICATION",
59 "Gtk.CssProvider css" : "",
60 "bool editable" : false,
61 "bool hexpand" : true,
62 "bool show_line_numbers" : false,
63 "bool vexpand" : true,
65 "string name" : "compile-results-view",
69 "xtype" : "ScrolledWindow"
81 "\tvar buf = (GtkSource.Buffer)this.sourceview.el.get_buffer();",
82 "\tGtk.TextIter iter;",
83 "\tbuf.get_end_iter (out iter);",
84 "\tbuf.insert(ref iter, str, str.length);",
86 "\tbuf.get_end_iter (out iter);",
87 "\tthis.sourceview.el.scroll_to_iter(iter, 0.0f, true, 0.0f, 1.0f);",
93 "( Gtk.Widget onbtn, bool reset) {",
94 "\tvar win = this.window.el;",
95 " var w = win.get_width();",
96 " var h = win.get_height();",
98 " // left tree = 250, editor area = 500?",
100 " var new_w = int.min(750, w-100);",
101 " if (new_w > (w-100)) {",
104 " this.el.set_size_request( int.max(100, new_w), int.max(100, h-120));",
105 " \tif (this.el.parent == null) {",
106 "\t\tthis.el.set_parent(win);",
108 " // Gtk.Allocation rect;",
109 "\t//onbtn.get_allocation(out rect);",
110 " //this.el.set_pointing_to(rect);",
113 " // not sure why..",
116 "\t\tvar buf = (GtkSource.Buffer)this.sourceview.el.get_buffer();",
117 "\t\tbuf.set_text(\"\",0);",
128 "name" : "ValaCompileResults"