{
"listeners" : {
"destroy" : "() => {\n Gtk.main_quit();\n}",
- "show" : "() => {\n\t\n\tprint(\"resizing window\\n\");\n\tthis.el.resize(1200,500);\n\tprint(\"loading url\\n\");\n\tthis.view.el.load_uri(webkitpdf.opt_url);\n\n}"
+ "show" : "() => {\n\t\n\tprint(\"resizing window\\n\");\n\tthis.el.resize(1200,500);\n\tprint(\"loading url\\n\");\n\tthis.view.el.load_uri(webkitpdf.opt_url);\n\t\n\t// if we have not finished in 25 seconds\n\t// call printit...\n\t GLib.Timeout.add_seconds(25, () => { \n\t\t\t_this.view.printit();\n\t\t\t});\n\t\n\n}"
},
"xtype" : "Window",
"$ xns" : "Gtk",
this.el.resize(1200,500);
print("loading url\n");
this.view.el.load_uri(webkitpdf.opt_url);
+
+ // if we have not finished in 25 seconds
+ // call printit...
+ GLib.Timeout.add_seconds(25, () => {
+ _this.view.printit();
+ });
+
});
}