[gtk+/gtk-3-4] printing: Localize loaded PPD files
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-4] printing: Localize loaded PPD files
- Date: Wed, 2 May 2012 13:03:31 +0000 (UTC)
commit 41f58738b2abbfe3092ac28a2f1e11b04cbbbd7c
Author: Marek Kasik <mkasik redhat com>
Date: Fri Apr 20 17:09:58 2012 +0200
printing: Localize loaded PPD files
Use ppdLocalize() to localize strings in loaded PPD file (#674326).
modules/printbackends/cups/gtkprintbackendcups.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index 969b531..39ba266 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -2388,6 +2388,9 @@ cups_request_ppd_cb (GtkPrintBackendCups *print_backend,
/* let ppdOpenFd take over the ownership of the open file */
g_io_channel_seek_position (data->ppd_io, 0, G_SEEK_SET, NULL);
data->printer->ppd_file = ppdOpenFd (dup (g_io_channel_unix_get_fd (data->ppd_io)));
+#if (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2) || CUPS_VERSION_MAJOR > 1
+ ppdLocalize (data->printer->ppd_file);
+#endif
ppdMarkDefaults (data->printer->ppd_file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]