summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMarek Kasik <mkasik@redhat.com>2012-04-20 17:09:58 +0200
committerMarek Kasik <mkasik@redhat.com>2012-04-20 17:09:58 +0200
commit2c1839ae5f626e7ef5139b139e1ac9c8c6c04cf8 (patch)
treecdab9f84b9e3dfa4c57020656ab1356be2509f68 /modules
parentf6e2d0947d9f0d17e0a52b0e0d0046c4fd787912 (diff)
downloadgtk+-2c1839ae5f626e7ef5139b139e1ac9c8c6c04cf8.tar.gz
printing: Localize loaded PPD files
Use ppdLocalize() to localize strings in loaded PPD file (#674326).
Diffstat (limited to 'modules')
-rw-r--r--modules/printbackends/cups/gtkprintbackendcups.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index 3a250bb424..120f0c1303 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -2318,6 +2318,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);