aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2002-04-19 04:38:06 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-04-19 04:38:06 +0800
commit6ac64665014118cbf90acb3d513317676a6a54a3 (patch)
treee3efd1eac04ce74ea8198a6f2004fc929af8cb82
parenteb1f04235ae0241fde8f7c57d9a2a22e4cb7b6ea (diff)
downloadgsoc2013-evolution-6ac64665014118cbf90acb3d513317676a6a54a3.tar.gz
gsoc2013-evolution-6ac64665014118cbf90acb3d513317676a6a54a3.tar.zst
gsoc2013-evolution-6ac64665014118cbf90acb3d513317676a6a54a3.zip
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
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-callbacks.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 8c8a115156..74a604f446 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -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>
* mail-identify.c (mail_identify_mime_part): Turn off the code
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 9a2f349103..c9705b280d 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -2816,6 +2816,7 @@ do_mail_print (FolderBrowser *fb, gboolean preview)
GnomePrintMaster *print_master;
GnomePrintDialog *dialog;
GnomePrinter *printer = NULL;
+ GnomePaper *paper;
gdouble line = 0.0;
int copies = 1;
int collate = FALSE;
@@ -2849,7 +2850,10 @@ do_mail_print (FolderBrowser *fb, gboolean preview)
if (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);
print_context = gnome_print_master_get_context (print_master);