[gnome-settings-daemon/gnome-3-16] print-notifications: Don't show error for job in progress
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-16] print-notifications: Don't show error for job in progress
- Date: Wed, 20 May 2015 13:12:02 +0000 (UTC)
commit fb8577edd4da0c7ef181acf2500dc718dcee4e3b
Author: Marek Kasik <mkasik redhat com>
Date: Wed May 20 15:08:56 2015 +0200
print-notifications: Don't show error for job in progress
Blacklist 'cups-waiting-for-job-completed' job state reason which
is rather an internal flag for CUPS.
https://bugzilla.redhat.com/show_bug.cgi?id=1207154
.../gsd-print-notifications-manager.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c
b/plugins/print-notifications/gsd-print-notifications-manager.c
index b557bd3..31c97a2 100644
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
@@ -304,16 +304,25 @@ show_notification (gpointer user_data)
}
static gboolean
-reason_is_blacklisted (const gchar *reason) {
+reason_is_blacklisted (const gchar *reason)
+{
if (g_str_equal (reason, "none"))
return TRUE;
+
if (g_str_equal (reason, "other"))
return TRUE;
+
if (g_str_equal (reason, "com.apple.print.recoverable"))
return TRUE;
+
/* https://bugzilla.redhat.com/show_bug.cgi?id=883401 */
if (g_str_has_prefix (reason, "cups-remote-"))
return TRUE;
+
+ /* https://bugzilla.redhat.com/show_bug.cgi?id=1207154 */
+ if (g_str_equal (reason, "cups-waiting-for-job-completed"))
+ return TRUE;
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]