Disabling print range settings?
- From: Enrico TrÃger <enrico troeger uvena de>
- To: gtk-app-devel-list gnome org
- Subject: Disabling print range settings?
- Date: Thu, 15 May 2008 14:33:52 +0200
Hi,
is there any way to disable or overwrite the print range in
GtkPrintSettings?
The implementation of printing in my application currently doesn't
support a range of pages. So I'd like to disable the selection of such
or at least to overwrite the user's choice.
I tried this in the begin-print signal handler like this:
GtkPrintSettings *lsettings;
GtkPageRange range;
lsettings = gtk_print_operation_get_print_settings(operation);
gtk_print_settings_set_print_pages(lsettings, GTK_PRINT_PAGES_ALL);
gtk_print_settings_set_page_set(lsettings, GTK_PAGE_SET_ALL);
range.start = 0; range.end = dinfo->n_pages;
gtk_print_settings_set_page_ranges(lsettings, &range, 1);
gtk_print_operation_set_print_settings(operation, lsettings);
But this seems to have no effect at all.
The draw-page signal is fired only for the user selected pages but I
need it to get fired for all pages.
Any ideas?
Regards,
Enrico
--
Get my GPG key from http://www.uvena.de/pub.asc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]