BrowserView.js
authorChris <chris@roojs.com>
Tue, 17 Sep 2013 05:40:41 +0000 (13:40 +0800)
committerChris <chris@roojs.com>
Tue, 17 Sep 2013 05:40:41 +0000 (13:40 +0800)
BrowserView.js

index 183c894..055cb34 100644 (file)
@@ -327,7 +327,7 @@ BrowserView = new GType({
         this.signal.load_progress_changed.connect(update_progress);
        print(WebKit.WebFrame);
        var mv = this.get_main_frame();
-        var p = new Gtk();
+        var p = new Gtk.PrintOperation({ export_filename : 'test.pdf' });
         
         print(mv);
         print(p);