BrowserWindow.vala
[app.webkitpdf] / BrowserWindow.vala
index 6909e21..374f983 100644 (file)
@@ -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;