mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
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:
parent
06e446c60d
commit
a9dc0eb466
@ -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.
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user