X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=BrowserView.js;h=97b656a4e588e6e3d0812439504bd0bc491c0f69;hb=8847a28e69f86c7ca52bda090096ddfc94c2bf6f;hp=babe4e17e05160d38bff416c97315fe9c4c1738c;hpb=2f98bdbc77aef18ae3f67de9fce140c43c4bf294;p=app.webkitpdf diff --git a/BrowserView.js b/BrowserView.js index babe4e1..97b656a 100644 --- a/BrowserView.js +++ b/BrowserView.js @@ -267,13 +267,13 @@ BrowserView = new GType({ var load_finished_called = false; var done_print = false; - var queue_print = 0; + var queue_print = -1; var load_started = function(fr) { print("load started"); - + queue_print++; } @@ -343,7 +343,7 @@ BrowserView = new GType({ if (done_print) { - queue_print++; + print("do_print called -- while already doing this... - restarting queue..."); GLib.timeout_add(GLib.PRIORITY_DEFAULT, BrowserSettings.delay *1, realprint); @@ -465,21 +465,7 @@ BrowserView = new GType({ - - var load_committed = function (web_view, web_frame) - { - print("load commited"); - - update_url(web_view, web_frame); - - // call load finished after 20seconds?? - // so even if it never complets we try and print the thing. - GLib.timeout_add(GLib.PRIORITY_LOW, 40000, function() { - print("load commited - 3000 ms?"); - load_finished(); - }); - - }; + var clicked_link = function (web_view, web_frame, request, action, decision, window)