[gtk/1509-don-t-show-Rejecting-Jobs-when-we-don-t-know] printing: Don't show Rejecting Jobs when we don't know
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/1509-don-t-show-Rejecting-Jobs-when-we-don-t-know] printing: Don't show Rejecting Jobs when we don't know
- Date: Fri, 25 Jan 2019 16:01:32 +0000 (UTC)
commit 68bf781e635f2bc98d1b4566b228fc24c5fbbb6d
Author: Marek Kasik <mkasik redhat com>
Date: Fri Jan 25 16:41:24 2019 +0100
printing: Don't show Rejecting Jobs when we don't know
Set reasonable default values for printers discovered
by Avahi which do not have 'printer-type' attribute.
This is the case for network printers which were not
published by CUPS.
Related to the issue #1509.
modules/printbackends/gtkprintbackendcups.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/modules/printbackends/gtkprintbackendcups.c b/modules/printbackends/gtkprintbackendcups.c
index f530c0506e..105f341b8c 100644
--- a/modules/printbackends/gtkprintbackendcups.c
+++ b/modules/printbackends/gtkprintbackendcups.c
@@ -2880,6 +2880,9 @@ create_cups_printer_from_avahi_data (AvahiConnectionTestData *data)
info->avahi_printer = TRUE;
info->printer_name = data->printer_name;
info->printer_uri = data->printer_uri;
+ info->default_printer = FALSE;
+ info->remote_printer = TRUE;
+ info->is_accepting_jobs = TRUE;
if (data->got_printer_state)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]