[gtk+/gtk-3-4] printing: Call mark_printer_active() with correct parameters



commit 1d521344ee7ae7319b10577f320c3debb95d8334
Author: Marek Kasik <mkasik redhat com>
Date:   Tue Dec 4 15:52:29 2012 +0100

    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().

 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 ec2e89a..2af0977 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -2197,7 +2197,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;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]