Fix dialog-less printing
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 Dec 2021 03:07:02 +0000 (22:07 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 10 Dec 2021 16:26:23 +0000 (11:26 -0500)
commitc6a68f3de293c91b3a5a83642b10fddd25ef57f5
treedc324579ffb2ab00b36a5ad7f7cae656d6fcbc67
parent935c6aade026a44be4dcf1e22c8e3ad6419ef9e3
Fix dialog-less printing

We were sometimes ending printer enumeration prematurely,
and the code was confused about the meaning of found_printer.

The new setup follows these rules:
- We *only* end the search prematurely if found_printer
  is set, which indicates that we found the right printer
- We *always* call find_printer_idle exactly once, and
  make it return less than perfect matches like the
  default printer, or the first printer we found

Fixes: #4439
gtk/gtkprintoperation-unix.c