// if we have not finished in 25 seconds
// call printit...
GLib.Timeout.add_seconds(25, () => {
+ print("Calling printit - timeout 25 seconds");
_this.view.printit();
return true;
});
#else
//listeners
- this.el.resource_request_starting.connect( (p0, webres, netreq ) => {
- print("resource req. started %s\n", netreq.uri);
+ // this.el.resource_request_starting.connect( (p0, webres, netreq ) => {
+ // print("resource req. started %s\n", netreq.uri);
- });
+ // });
this.el.load_finished.connect( ( ) => {
this.printit();
});
-
#endif
}
-
- //listeners
- this.el.load_finished.connect( ( ) => {
-
- this.printit();
-
- });
}
// user defined functions
return;
}
+
+ #if GTK3
+ print("PNG not supported in webkit2\n");
+ return;
+ #else
GLib.Timeout.add_seconds(webkitpdf.opt_delay, () => {
}, GLib.Priority.DEFAULT);
-
+ #endif
}
public bool printpdf () {
- this.el.print(pe);
+ this.el.get_main_frame().print(pe);
try {
// what size is the documet.
print("making screenshot\n");
-
+ #if GTK3
+
+ #else
// fix vapi - get_snapshot add '?' to all null.
var pixmap = _this.view.el.get_snapshot( null );
//});
Gtk.main_quit();
-
+ #endif