printing: Don't show Rejecting Jobs when we don't know
authorMarek Kasik <mkasik@redhat.com>
Fri, 25 Jan 2019 15:41:24 +0000 (16:41 +0100)
committerMarek Kasik <mkasik@redhat.com>
Thu, 12 Dec 2019 16:08:30 +0000 (17:08 +0100)
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

index c0f6d98439cd0371e57345ce120b296af78a3204..c47c4bafd43165c38277c07a4b138a1192af2b45 100644 (file)
@@ -2887,6 +2887,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)
     {