Prevent completed job notifications but keep status feedback.

This commit is contained in:
Tim Waugh 2011-02-17 10:05:47 +00:00
parent f489c6ff14
commit 68c46cac46

View File

@ -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')