34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
$OpenBSD: patch-panels_printers_pp-new-printer-dialog_c,v 1.1.1.1 2011/09/12 07:29:32 ajacoutot Exp $
|
|
|
|
No PackageKit on OpenBSD.
|
|
|
|
--- panels/printers/pp-new-printer-dialog.c.orig Mon May 9 12:31:40 2011
|
|
+++ panels/printers/pp-new-printer-dialog.c Wed Jun 1 12:58:26 2011
|
|
@@ -971,6 +971,7 @@ new_printer_add_button_cb (GtkButton *button,
|
|
pp->devices[device_id].device_uri,
|
|
pp->devices[device_id].device_location);
|
|
|
|
+#ifndef __OpenBSD__
|
|
if (ppd_name == NULL || ppd_name->ppd_match_level < PPD_EXACT_MATCH)
|
|
{
|
|
/* Try PackageKit to install printer driver */
|
|
@@ -1028,6 +1029,7 @@ new_printer_add_button_cb (GtkButton *button,
|
|
g_free (device_ids);
|
|
}
|
|
}
|
|
+#endif
|
|
|
|
/* Add the new printer */
|
|
if (ppd_name && ppd_name->ppd_name)
|
|
@@ -1154,8 +1156,10 @@ new_printer_add_button_cb (GtkButton *button,
|
|
|
|
|
|
/* Set default PaperSize according to the locale */
|
|
+#ifndef __OpenBSD__
|
|
locale = setlocale (LC_PAPER, NULL);
|
|
if (locale == NULL)
|
|
+#endif
|
|
locale = setlocale (LC_MESSAGES, NULL);
|
|
|
|
if (locale)
|