]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Use printer-modified event when changing the default printer (Issue #1246)
authorMichael R Sweet <msweet@msweet.org>
Wed, 7 May 2025 15:52:05 +0000 (11:52 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 7 May 2025 15:52:05 +0000 (11:52 -0400)
CHANGES.md
scheduler/ipp.c

index a1e82cdd68ffc367223139b4412b804e3c5d4705..ef8457ef02f19e79f0f70431f1cd64613038e1c8 100644 (file)
@@ -5,6 +5,8 @@ CHANGES - OpenPrinting CUPS
 Changes in CUPS v2.4.13 (YYYY-MM-DD)
 ------------------------------------
 
+- Updated the scheduler to send the "printer-modified" event whenever the system
+  default printer is changed (Issue #1246)
 - Fixed a memory leak in `httpClose` (Issue #1223)
 - Fixed missing commas in `ippCreateRequestedArray` (Issue #1234)
 - Fixed subscription issues in the scheduler and D-Bus notifier (Issue #1235)
index 1b3769ce09a5e9df7d29702deaf09860a3f2096b..68b8be99cb1597df2f1a833e9d7f238f4cb5ac81 100644 (file)
@@ -10503,10 +10503,10 @@ set_default(cupsd_client_t  *con,     /* I - Client connection */
   DefaultPrinter = printer;
 
   if (oldprinter)
-    cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, oldprinter, NULL,
+    cupsdAddEvent(CUPSD_EVENT_PRINTER_MODIFIED, oldprinter, NULL,
                   "%s is no longer the default printer.", oldprinter->name);
 
-  cupsdAddEvent(CUPSD_EVENT_PRINTER_STATE, printer, NULL,
+  cupsdAddEvent(CUPSD_EVENT_PRINTER_MODIFIED, printer, NULL,
                "%s is now the default printer.", printer->name);
 
   cupsdMarkDirty(CUPSD_DIRTY_PRINTERS | CUPSD_DIRTY_CLASSES |