GtkPrintOperation and custom tab
- From: ian liu88 gmail com
- To: Gnome List <gtk-list gnome org>
- Subject: GtkPrintOperation and custom tab
- Date: Mon, 04 Oct 2010 12:18:40 +0000
Dear GTK list,
I am working with WebKitGtk and I would like to do something like Firefox does in its print dialog: there is a custom
tab specifying if you want to include headers in the printed page. I added a custom tab inside the print dialog using
the GtkPrintOperation::create-custom-widget signal[1], this worked pretty well.
The problem starts here: since the print operation was called on a WebKitWebFrame, how can I modify the content
to be printed? I was trying to call webkit_web_view_open[2] on GtkPrintOperation::custom-widget-apply[3] signal,
passing the processed content page, but if the page is large enough, the print operation starts *before* the page is
fully loaded, so it prints only a part of it.
I appreciate any help.
Kind regards,
Ian L. Rodrigues
---
[1] - http://library.gnome.org/devel/gtk/stable/gtk-High-level-Printing-API.html#GtkPrintOperation-create-custom-widget
[2] - http://webkitgtk.org/reference/webkitgtk-webkitwebview.html#webkit-web-view-open
[3] - http://library.gnome.org/devel/gtk/stable/gtk-High-level-Printing-API.html#GtkPrintOperation-custom-widget-apply
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]