BrowserWindow.bjs
[app.webkitpdf] / BrowserWindow.vala
index 08643e8..e700e74 100644 (file)
@@ -55,13 +55,13 @@ public class BrowserWindow : Object
                
                print("loading url %s\n",blog); 
                this.view.el.load_uri(blog);
-               
+                
                // if we have not finished in 25 seconds
                // call printit...
-               var cd = 25;
+               var cd = webkitpdf.opt_delay > 25 ? webkitpdf.opt_delay : 25;
                  GLib.Timeout.add_seconds(1, () => { 
                        cd--;
-                       print("timeout 25 seconds :%d", cd);
+                       print("timeout 25 seconds :%d", (int)cd);
                        if (cd < 1) {
                                print("calling printit - timed out");
                                _this.view.printit();