GNOME Bugzilla – Bug 434318
printer detail acquisition needs events
Last modified: 2009-09-03 02:19:17 UTC
Printer details acquisition seems to need UI events to finish. Steps to reproduce: 0) gtk_enumerate_printers 1) in the callback, call gtk_printer_acquire_details 2) run a GMainLoop until the details are acquired Results: Details are never acquired (except for the 'print to file' printer).
Created attachment 87229 [details] [review] add a test programme for gtk_enumerate_printers and gtk_printer_request_details Observe the behavious of the test programme with different options: $ ./testprinterenum Results: lists all printers, but takes a long time $ ./testprinterenum --tick Results: lists all printers, and takes much less time $ ./testprinterenum --paper-sizes Results: lists all printers, but details acquisition never comes (or at least not before you run out of patience and kill the programme ;) $ ./testprinterenum --paper-sizes --tick Results: lists all printers, and details are acquired after a long delay $ ./testprinterenum --paper-sizes --ui Results: lists all printers, and details acquisition succeeds after some time $ ./testprinterenum --paper-sizes --ui --tick Results: lists all printers, details acquisition succeeds after a shorter time, but the mainloop is blocked for some length of time (the UI doesn't update continually). It blocks here:
+ Trace 131240