From aabf0245ed53c37804ccfe079a4b295626d76332 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Wed, 16 Feb 2011 15:46:37 +0000 Subject: [PATCH] Don't show job notifications from the applet (bug #677676). --- system-config-printer-no-job-notifications.patch | 13 +++++++++++++ system-config-printer.spec | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 system-config-printer-no-job-notifications.patch diff --git a/system-config-printer-no-job-notifications.patch b/system-config-printer-no-job-notifications.patch new file mode 100644 index 0000000..05c1975 --- /dev/null +++ b/system-config-printer-no-job-notifications.patch @@ -0,0 +1,13 @@ +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 + + loop = gobject.MainLoop () +- runloop = RunLoop (session_bus, system_bus, loop) + try: +- runloop.run () ++ loop.run () + except KeyboardInterrupt: + pass diff --git a/system-config-printer.spec b/system-config-printer.spec index e3880b1..ce33b5b 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -5,11 +5,12 @@ Summary: A printer administration tool Name: system-config-printer Version: 1.3.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ URL: http://cyberelk.net/tim/software/system-config-printer/ Group: System Environment/Base Source0: http://cyberelk.net/tim/data/system-config-printer/1.2/%{name}-%{version}.tar.xz +Patch1: system-config-printer-no-job-notifications.patch BuildRequires: cups-devel >= 1.2 BuildRequires: desktop-file-utils >= 0.2.92 BuildRequires: gettext-devel @@ -66,6 +67,7 @@ printers. %prep %setup -q +%patch1 -p1 -b .no-job-notifications %build %configure --with-udev-rules @@ -175,6 +177,11 @@ rm -rf %buildroot exit 0 %changelog +* Wed Feb 16 2011 Tim Waugh 1.3.0-2 +- Don't show job notifications from the applet, just do New Printer + notifications and handle requests to install printer drivers + (bug #677676). + * Wed Feb 16 2011 Tim Waugh 1.3.0-1 - 1.3.0: - Prevent look-up failures in dnssdresolve (Ubuntu #716357).