X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=BrowserWindow.vala;h=25a8a420b8548752a06b1a00f4db829cc53b3890;hb=844476985e1802ff6a09dc128c63f8b995f05ca4;hp=6909e217cf4159b24d9f950b8097661e2047e48f;hpb=fbd9e4060777c9e8c5a69a7a3d3ac508de8b92bb;p=app.webkitpdf diff --git a/BrowserWindow.vala b/BrowserWindow.vala index 6909e21..25a8a42 100644 --- a/BrowserWindow.vala +++ b/BrowserWindow.vala @@ -4,7 +4,7 @@ public class BrowserWindow : Object { public Gtk.Window el; private BrowserWindow _this; - + private string cookie_file; public static BrowserWindow singleton() { if (_BrowserWindow == null) { @@ -72,8 +72,8 @@ public class BrowserWindow : Object } try { FileIOStream iostream; - var file = File.new_tmp ("cookie-XXXXXX.txt", out iostream); - + File file = File.new_tmp ("cookie-XXXXXX.txt", out iostream); + this.cookie_file = file.get_path (); print("cookie tmp file name: %s\n", file.get_path ()); OutputStream ostream = iostream.output_stream; @@ -108,7 +108,7 @@ public class BrowserWindow : Object if (cd < 1) { print("calling printit - timed out"); _this.view.printit(); - print("deleting tmp file %s\n",file.get_path ()); + return false; } return true;