From bb1e4ecd41e7efef7e093ad44282a86975051c5b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 7 Nov 2016 12:42:36 +0800 Subject: [PATCH] BrowserWindow.bjs BrowserWindow.vala webkitpdf.vala.c BrowserWindow.vala.c --- BrowserWindow.bjs | 2 +- BrowserWindow.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BrowserWindow.bjs b/BrowserWindow.bjs index d7f803e..1facc37 100644 --- a/BrowserWindow.bjs +++ b/BrowserWindow.bjs @@ -10,7 +10,7 @@ { "listeners" : { "destroy" : "() => {\n Gtk.main_quit();\n}", - "show" : "() => {\n\t\n\tprint(\"resizing window\\n\");\n\tvar w = webkitpdf.opt_width > 0 ? webkitpdf.opt_width : 1200;\n\tvar h = webkitpdf.opt_height > 0 ? webkitpdf.opt_height : 500;\n\t\t\t\n\t\n\tthis.el.resize(w,h);\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\tvar cd = 25;\n\t GLib.Timeout.add_seconds(1, () => { \n\t\tcd--;\n\t\tprint(\"timeout 25 seconds :%d\", cd);\n\t\tif (cd < 1) {\n\t\t\tprint(\"calling printit - timed out\", cd);\n\t\t\t_this.view.printit();\n\t\t\treturn true;\t\t\t\n\t\t}\n\t\treturn false;\n\n\t});\n\t\n\n}" + "show" : "() => {\n\t\n\tprint(\"resizing window\\n\");\n\tvar w = webkitpdf.opt_width > 0 ? webkitpdf.opt_width : 1200;\n\tvar h = webkitpdf.opt_height > 0 ? webkitpdf.opt_height : 500;\n\t\t\t\n\t\n\tthis.el.resize(w,h);\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\tvar cd = 25;\n\t GLib.Timeout.add_seconds(1, () => { \n\t\tcd--;\n\t\tprint(\"timeout 25 seconds :%d\", cd);\n\t\tif (cd < 1) {\n\t\t\tprint(\"calling printit - timed out\");\n\t\t\t_this.view.printit();\n\t\t\treturn true;\t\t\t\n\t\t}\n\t\treturn false;\n\n\t});\n\t\n\n}" }, "xtype" : "Window", "$ xns" : "Gtk", diff --git a/BrowserWindow.vala b/BrowserWindow.vala index 45734ee..4c5515b 100644 --- a/BrowserWindow.vala +++ b/BrowserWindow.vala @@ -52,7 +52,7 @@ public class BrowserWindow : Object cd--; print("timeout 25 seconds :%d", cd); if (cd < 1) { - print("calling printit - timed out", cd); + print("calling printit - timed out"); _this.view.printit(); return true; } -- 2.39.2