summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2012-07-05 20:54:37 (GMT)
committerJiri Popelka <jpopelka@redhat.com>2012-07-19 11:47:29 (GMT)
commitc03126a2854ceb8f670d8086bd10e9a2712dd664 (patch)
tree141da239ba9e872488225bcde7f32e5b449a8322
parent86e87cbaa5956f07a70f923ca0c5782c7726097d (diff)
downloadsystem-config-printer-c03126a2854ceb8f670d8086bd10e9a2712dd664.zip
system-config-printer-c03126a2854ceb8f670d8086bd10e9a2712dd664.tar.gz
system-config-printer-c03126a2854ceb8f670d8086bd10e9a2712dd664.tar.xz
Suppress misleading notifications
Suppress notification messages for the new "cups-remote-..." state reasons of CUPS 1.5.x. As they do not have human-readable text, the notifications look like errors, which is misleading (Ubuntu #855379) Generally new notification messages which do not yet have human-readable text should be suppressed.
-rw-r--r--jobviewer.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/jobviewer.py b/jobviewer.py
index 8b6182a..1db0dc5 100644
--- a/jobviewer.py
+++ b/jobviewer.py
@@ -1683,6 +1683,20 @@ class JobViewer (GtkGUI):
# This seems to be some sort of 'magic' state reason that
# is for internal use only.
"com.apple.print.recoverable",
+
+ # Human-readable text for this reason has misleading wording,
+ # suppress it.
+ "connecting-to-device",
+
+ # "cups-remote-..." reasons have no human-readable text yet and
+ # so get considered as errors, suppress them, too.
+ "cups-remote-pending",
+ "cups-remote-pending-held",
+ "cups-remote-processing",
+ "cups-remote-stopped",
+ "cups-remote-canceled",
+ "cups-remote-aborted",
+ "cups-remote-completed"
]
if reason.get_reason () in blacklist: