Send printer-list-done on error.

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

	* modules/printbackends/cups/gtkprintbackendcups.c (cups_request_printer_list_cb): Send printer-list-done on error.
This commit is contained in:
Matthias Clasen 2006-08-31 17:44:07 +00:00 committed by Matthias Clasen
parent 06e446c60d
commit a9dc0eb466
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-08-31 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkprintbackendcups.c (cups_request_printer_list_cb): Send printer-list-done on error.
2006-08-31 Michael Natterer <mitch@imendio.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_beep): Fix build.

View File

@ -965,7 +965,8 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
if (gtk_cups_result_is_error (result))
{
g_warning ("Error getting printer list: %s", gtk_cups_result_get_error_string (result));
return;
goto done;
}
/* Gather the names of the printers in the current queue
@ -1134,6 +1135,7 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
list_has_changed = TRUE;
}
done:
if (list_has_changed)
g_signal_emit_by_name (backend, "printer-list-changed");