Use a resonable timeout of 3 seconds when polling for printer list

2006-08-28  Matthias Clasen   <mclasen@redhat.com>

        * modules/printbackend/cups/gtkprintbackendcups.c: Use a
        resonable timeout of 3 seconds when polling for printer
        list updates, instead of 300000 seconds...
This commit is contained in:
Matthias Clasen 2006-08-28 18:03:44 +00:00 committed by Matthias Clasen
parent 0fa6144940
commit af2d60ab70
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-08-28 Matthias Clasen <mclasen@redhat.com>
* modules/printbackend/cups/gtkprintbackendcups.c: Use a
resonable timeout of 3 seconds when polling for printer
list updates, instead of 300000 seconds...
2006-08-28 Michael Natterer <mitch@imendio.com>
* gtk/gtktextbufferserialize.c (serialize_text): don't write out

View File

@ -448,7 +448,8 @@ gtk_print_backend_cups_print_stream (GtkPrintBackend *print_backend,
static void
gtk_print_backend_cups_init (GtkPrintBackendCups *backend_cups)
{
backend_cups->list_printers_poll = 0;
backend_cups->list_printers_poll = FALSE;
backend_cups->got_default_printer = FALSE;
backend_cups->list_printers_pending = FALSE;
cups_request_default_printer (backend_cups);
@ -1185,7 +1186,7 @@ cups_get_printer_list (GtkPrintBackend *backend)
if (cups_backend->list_printers_poll == 0)
{
cups_request_printer_list (cups_backend);
cups_backend->list_printers_poll = g_timeout_add (3000 * 100000,
cups_backend->list_printers_poll = g_timeout_add (3000,
(GSourceFunc) cups_request_printer_list,
backend);
}