After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 753041 - Printer information not properly initialized if starting a print job within gtk_enumerate_printers
Printer information not properly initialized if starting a print job within g...
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Printing
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-07-30 00:17 UTC by Mike Conley
Modified: 2018-04-15 00:21 UTC
See Also:
GNOME target: ---
GNOME version: 3.15/3.16



Description Mike Conley 2015-07-30 00:17:02 UTC
Looking at [1], it appears that the printer-added signal, which gtk_enumerate_printers appears to listen for synchronously, is fired before things like the printer state or various capability members are set[2].

This seems to at least result in the printing backend thinking that a printer cannot do multiple copies if we attempt to kick off a print job from within gtk_enumerate_printers.

The work around is to defer starting the print job until the next tick of the event loop so that the members can be set.

Note that this ordering is inconsistent with a different location[3], where printer-added is fired just after the capability members are set.

[1]: https://git.gnome.org/browse/gtk+/tree/modules/printbackends/cups/gtkprintbackendcups.c?id=3.10.8#n3119

[2]: https://git.gnome.org/browse/gtk+/tree/modules/printbackends/cups/gtkprintbackendcups.c?id=3.10.8#n3131

[3]: https://git.gnome.org/browse/gtk+/tree/modules/printbackends/cups/gtkprintbackendcups.c?id=3.10.8#n2485
Comment 1 Matthias Clasen 2018-02-10 05:03:46 UTC
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Comment 2 Matthias Clasen 2018-04-15 00:21:34 UTC
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla.

If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab:

https://gitlab.gnome.org/GNOME/gtk/issues/new