gtk/modules/printbackends
Matthias Clasen 8ec27f7760 Bug 346903 – gtk_enumerate_printers needs events to complete
2008-09-17  Matthias Clasen  <mclasen@redhat.com>

        Bug 346903 – gtk_enumerate_printers needs events to complete

        * gtk/gtkprintbackend.h:
        * gtk/gtkprintbackend.c: Add a GtkPrintBackend::status property.

        * modules/printbackends/cups/gtkcupsutils.h:
        * modules/printbackends/cups/gtkcupsutils.c: Turn the connection
        test into a tristate available/unavailable/in progress.

        * modules/printbackends/cups/gtkprintbackendcups.c: Use a single
        connection test instance for getting the default printer and for
        getting the printer list. Set the GtkPrintBackend::status property
        according to the result of the connection test. Use the printer-type
        attribute to find the default printer, if cups supports it.

        * gtk/gtkprinter.c: When enumerating printers, give up when
        the backend status is 'unavailable'.

        * gtk/gtkprintunixdialog.c (printer_status_cb): Select the printer
        when it is the default and nothing else has been selected yet.


svn path=/trunk/; revision=21417
2008-09-17 22:07:10 +00:00
..
cups Bug 346903 – gtk_enumerate_printers needs events to complete 2008-09-17 22:07:10 +00:00
file Bug 549810 – Memory leaks in printing code 2008-08-29 18:14:32 +00:00
lpr Revert name change 2008-07-01 22:57:50 +00:00
test Bug 549810 – Memory leaks in printing code 2008-08-29 18:14:32 +00:00
Makefile.am call g_test_init() from gtk_test_init(). 2007-11-22 14:38:26 +00:00