src/Builder4/GtkView.vala
"modOrder" : "",
"items" : [
{
- "listeners" : {
- "show" : "() => {\n _this.compile_view.el.hide();\n\n}"
- },
"id" : "GtkView",
"# Gtk.Widget lastObj" : "null",
"| void createThumb" : "() {\n \n \n if (this.file == null) {\n return;\n }\n var filename = this.file.getIconFileName(false);\n \n var win = this.el.get_parent_window();\n var width = win.get_width();\n var height = win.get_height();\n\n Gdk.Pixbuf screenshot = Gdk.pixbuf_get_from_window(win, 0, 0, width, height); // this.el.position?\n\n screenshot.save(filename,\"png\");\n return;\n \n \n \n \n \n \n \n // should we hold until it's printed...\n \n \n\n \n \n\n\n \n \n}\n",
var child_1 = new Xcls_compile_view( _this );
child_1.ref();
this.el.pack2 ( child_1.el , true,true );
-
- // listeners
- this.el.show.connect( () => {
- _this.compile_view.el.hide();
-
- });
}
// user defined functions