[gnome-settings-daemon] print-notifications: Don't show printer-deleted notifications
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] print-notifications: Don't show printer-deleted notifications
- Date: Mon, 13 Apr 2015 11:15:44 +0000 (UTC)
commit 10780bdb63b1d7b7176a0ad86450b535bb39248b
Author: Martin Hatina <mhatina redhat com>
Date: Thu Apr 9 12:48:04 2015 +0200
print-notifications: Don't show printer-deleted notifications
Don't show the printer-deleted notification. Handling the
printer-deleted signal is still needed, to keep the printer list
updated.
https://bugzilla.gnome.org/show_bug.cgi?id=664296
.../gsd-print-notifications-manager.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c
b/plugins/print-notifications/gsd-print-notifications-manager.c
index 8c4b520..e559179 100644
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
@@ -459,14 +459,6 @@ process_cups_notification (GsdPrintNotificationsManager *manager,
secondary_text = g_strdup (printer_name);
}
} else if (g_strcmp0 (notify_subscribed_event, "printer-deleted") == 0) {
- if (is_local_dest (printer_name,
- manager->priv->dests,
- manager->priv->num_dests)) {
- /* Translators: A printer has been removed */
- primary_text = g_strdup (_("Printer removed"));
- secondary_text = g_strdup (printer_name);
- }
-
cupsFreeDests (manager->priv->num_dests, manager->priv->dests);
manager->priv->num_dests = cupsGetDests (&manager->priv->dests);
} else if (g_strcmp0 (notify_subscribed_event, "job-completed") == 0 && my_job) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]