Re: Patch: do not persist print pages settings, etc.



El lun, 12-05-2008 a las 19:12 -0400, Patrick Lam escribió:
> Hi,
> 
> I've been frustrated a number of times by evince's persisting of page
> ranges for printing. That is, if I print pages 1-3 of x.pdf, and then
> tomorrow I print y.pdf without checking the dialog box, evince happily
> prints pages 1-3 of y.pdf. No sane person could want that!

Print settings are persistent per document since 2.21.1, what evince
version are you using? 

> Please consider the following trivial diff, which prevents the
> persisting of page information.

A lot of people are complaining about the persistent print settings.
Some people don't want any print setting to be remembered, others think
that only some settings should be remembered, and I don't know what to
do, What do you guys think?

> Index: shell/ev-application.c
> ===================================================================
> --- shell/ev-application.c	(revision 3031)
> +++ shell/ev-application.c	(working copy)
> @@ -828,6 +828,12 @@
>  	if (application->print_settings)
>  		g_object_unref (application->print_settings);
>  	
> +	/* Do not persist print pages, page ranges, or page set. */
> +	/* (I've wasted too many pages on this. -plam) */
> +	gtk_print_settings_set_print_pages(settings, GTK_PRINT_PAGES_ALL);
> +	gtk_print_settings_set_page_ranges(settings, NULL, 0);
> +	gtk_print_settings_set_page_set(settings, GTK_PAGE_SET_ALL);
> +
>  	application->print_settings = g_object_ref (settings);
>  }
> 
> 
> Thanks!
> 
> pat
> _______________________________________________
> Evince-list mailing list
> Evince-list gnome org
> http://mail.gnome.org/mailman/listinfo/evince-list

-- 
Carlos Garcia Campos
   elkalmail yahoo es
   carlosgc gnome org
   http://carlosgc.linups.org
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]