diff options
author | Marek Kasik <mkasik@redhat.com> | 2012-12-04 15:48:08 +0100 |
---|---|---|
committer | Marek Kasik <mkasik@redhat.com> | 2012-12-04 15:48:08 +0100 |
commit | 6f69a0fef61dc055833d7d722bf7fd98b97a56fe (patch) | |
tree | 97b45d8ce5b00ebd997d9117dd6a878a5e4b482f /modules | |
parent | f08fc1274141a0e631687de12246409881ec2454 (diff) | |
download | gtk+-6f69a0fef61dc055833d7d722bf7fd98b97a56fe.tar.gz |
printing: Call mark_printer_active() with correct parameters
Revert the second part of the commit
6ad6f719c6b2fc7cf797c86b406f4e61d9fca4d1. mark_printer_active()
was called without its second parameter in g_list_free_full().
Diffstat (limited to 'modules')
-rw-r--r-- | modules/printbackends/cups/gtkprintbackendcups.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index 675e4c3996..96f4be4103 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -2210,7 +2210,8 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend, as inactive if it is in the list, emitting a printer_removed signal */ if (removed_printer_checklist != NULL) { - g_list_free_full (removed_printer_checklist, (GDestroyNotify) mark_printer_inactive); + g_list_foreach (removed_printer_checklist, (GFunc) mark_printer_inactive, backend); + g_list_free (removed_printer_checklist); list_has_changed = TRUE; } |