honour delay in webkit2 printing
[app.webkitpdf] / BrowserWindow.vala
index 3bd2bcd..280047f 100644 (file)
@@ -292,9 +292,12 @@ public class BrowserWindow : Object
                        
         
         #if GTK3
-               this.printpng();        
-               //print("PNG not supported in webkit2\n");
-               return;
+               GLib.Timeout.add_seconds(webkitpdf.opt_delay, () => { 
+                               print("delay done URL: %s\n", this.el.uri);
+                               this.printpng();        
+                               return false;
+                       }, GLib.Priority.DEFAULT);
+                       return;
         #else
                        
             GLib.Timeout.add_seconds(webkitpdf.opt_delay, () => {