use default paper name in case of wrong translation

2002-04-18  Radek Doulik  <rodo@ximian.com>

	* mail-callbacks.c (do_mail_print): use default paper name in case
	of wrong translation

svn path=/trunk/; revision=16516
This commit is contained in:
Radek Doulik
2002-04-18 20:38:06 +00:00
committed by Radek Doulik
parent eb1f04235a
commit 6ac6466501
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-04-18 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (do_mail_print): use default paper name in case
of wrong translation
2002-04-15 Not Zed <NotZed@Ximian.com> 2002-04-15 Not Zed <NotZed@Ximian.com>
* mail-identify.c (mail_identify_mime_part): Turn off the code * mail-identify.c (mail_identify_mime_part): Turn off the code

View File

@ -2816,6 +2816,7 @@ do_mail_print (FolderBrowser *fb, gboolean preview)
GnomePrintMaster *print_master; GnomePrintMaster *print_master;
GnomePrintDialog *dialog; GnomePrintDialog *dialog;
GnomePrinter *printer = NULL; GnomePrinter *printer = NULL;
GnomePaper *paper;
gdouble line = 0.0; gdouble line = 0.0;
int copies = 1; int copies = 1;
int collate = FALSE; int collate = FALSE;
@ -2849,7 +2850,10 @@ do_mail_print (FolderBrowser *fb, gboolean preview)
if (printer) if (printer)
gnome_print_master_set_printer (print_master, printer); gnome_print_master_set_printer (print_master, printer);
gnome_print_master_set_paper (print_master, gnome_paper_with_name (_("US-Letter"))); paper = gnome_paper_with_name (_("US-Letter"));
if (!paper)
paper = gnome_paper_with_name (gnome_paper_name_default ());
gnome_print_master_set_paper (print_master, paper);
gnome_print_master_set_copies (print_master, copies, collate); gnome_print_master_set_copies (print_master, copies, collate);
print_context = gnome_print_master_get_context (print_master); print_context = gnome_print_master_get_context (print_master);