domains/remove_print_css.js
[app.webkitpdf] / BrowserView.js
index babe4e1..97b656a 100644 (file)
@@ -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)