gtk2/modules
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
..
engines define -DGDK_PIXBUF_DISABLE_DEPRECATED in the global CFLAGS. 2008-08-12 15:04:55 +00:00
input define -DGDK_PIXBUF_DISABLE_DEPRECATED in the global CFLAGS. 2008-08-12 15:04:55 +00:00
other Bug #548783. Change g_assert to g_return_if_fail to avoid unnucessary 2008-08-21 05:41:16 +00:00
printbackends Bug 346903 – gtk_enumerate_printers needs events to complete 2008-09-17 22:07:10 +00:00
Makefile.am Integrate gail into gtk+. Bug #169488. 2007-12-18 13:51:12 +00:00