gtk2/modules/printbackends/cups
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
..
gtkcupsutils.c Bug 346903 – gtk_enumerate_printers needs events to complete 2008-09-17 22:07:10 +00:00
gtkcupsutils.h Bug 346903 – gtk_enumerate_printers needs events to complete 2008-09-17 22:07:10 +00:00
gtkprintbackendcups.c Bug 346903 – gtk_enumerate_printers needs events to complete 2008-09-17 22:07:10 +00:00
gtkprintbackendcups.h Revert name change 2008-07-01 22:57:50 +00:00
gtkprintercups.c change return value and local variable to const gchar* to fix warning 2008-04-18 14:51:26 +00:00
gtkprintercups.h gtk/Makefile.am add a single-include header for the unix print stuff. 2008-05-29 09:34:53 +00:00
Makefile.am call g_test_init() from gtk_test_init(). 2007-11-22 14:38:26 +00:00