From 68c46cac46b7f0b5d1155e6955b1f09bca07c8d4 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 17 Feb 2011 10:05:47 +0000 Subject: [PATCH] Prevent completed job notifications but keep status feedback. --- ...-config-printer-no-job-notifications.patch | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/system-config-printer-no-job-notifications.patch b/system-config-printer-no-job-notifications.patch index 05c1975..cd5958a 100644 --- a/system-config-printer-no-job-notifications.patch +++ b/system-config-printer-no-job-notifications.patch @@ -1,13 +1,11 @@ -diff -up system-config-printer-1.3.0/applet.py.no-job-notifications system-config-printer-1.3.0/applet.py ---- system-config-printer-1.3.0/applet.py.no-job-notifications 2011-02-16 15:43:42.215670390 +0000 -+++ system-config-printer-1.3.0/applet.py 2011-02-16 15:44:09.041703328 +0000 -@@ -441,8 +441,7 @@ if __name__ == '__main__': - pass +diff -up system-config-printer-1.3.0/jobviewer.py.no-job-notifications system-config-printer-1.3.0/jobviewer.py +--- system-config-printer-1.3.0/jobviewer.py.no-job-notifications 2011-02-17 10:01:19.326028750 +0000 ++++ system-config-printer-1.3.0/jobviewer.py 2011-02-17 10:03:43.762315309 +0000 +@@ -1700,6 +1700,7 @@ class JobViewer (GtkGUI): + return - loop = gobject.MainLoop () -- runloop = RunLoop (session_bus, system_bus, loop) - try: -- runloop.run () -+ loop.run () - except KeyboardInterrupt: - pass + def notify_completed_job (self, jobid): ++ return + job = self.jobs.get (jobid, {}) + document = job.get ('job-name', _("Unknown")) + printer_uri = job.get ('job-printer-uri')