Removed calls to pynotify.Notification.attach_to_status_icon() (bug #657722).

This commit is contained in:
Tim Waugh 2010-11-30 13:08:17 +00:00
parent 197c82660b
commit f5a8176626
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,23 @@
diff -up system-config-printer-1.2.95/jobviewer.py.attach-to-status-icon system-config-printer-1.2.95/jobviewer.py
--- system-config-printer-1.2.95/jobviewer.py.attach-to-status-icon 2010-11-24 17:26:25.000000000 +0000
+++ system-config-printer-1.2.95/jobviewer.py 2010-11-30 13:07:10.328607041 +0000
@@ -1673,9 +1673,6 @@ class JobViewer (GtkGUI):
self.on_state_reason_notification_closed)
self.state_reason_notifications[reason.get_tuple ()] = notification
self.set_statusicon_visibility ()
- if not self.notify_has_persistence:
- notification.attach_to_status_icon (self.statusicon)
-
try:
notification.show ()
except gobject.GError:
@@ -1731,9 +1728,6 @@ class JobViewer (GtkGUI):
notification.set_data ('jobid', jobid)
self.completed_job_notifications[jobid] = notification
self.set_statusicon_visibility ()
- if not self.notify_has_persistence:
- notification.attach_to_status_icon (self.statusicon)
-
try:
notification.show ()
except gobject.GError:

View File

@ -5,11 +5,12 @@
Summary: A printer administration tool Summary: A printer administration tool
Name: system-config-printer Name: system-config-printer
Version: 1.2.95 Version: 1.2.95
Release: 2%{?dist} Release: 3%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://cyberelk.net/tim/software/system-config-printer/ URL: http://cyberelk.net/tim/software/system-config-printer/
Group: System Environment/Base Group: System Environment/Base
Source0: http://cyberelk.net/tim/data/system-config-printer/1.2/%{name}-%{version}.tar.xz Source0: http://cyberelk.net/tim/data/system-config-printer/1.2/%{name}-%{version}.tar.xz
Patch1: system-config-printer-attach-to-status-icon.patch
BuildRequires: cups-devel >= 1.2 BuildRequires: cups-devel >= 1.2
BuildRequires: desktop-file-utils >= 0.2.92 BuildRequires: desktop-file-utils >= 0.2.92
BuildRequires: gettext-devel BuildRequires: gettext-devel
@ -65,6 +66,7 @@ printers.
%prep %prep
%setup -q %setup -q
%patch1 -p1 -b .attach-to-status-icon
%build %build
%configure --with-udev-rules %configure --with-udev-rules
@ -174,6 +176,10 @@ rm -rf %buildroot
exit 0 exit 0
%changelog %changelog
* Tue Nov 30 2010 Tim Waugh <twaugh@redhat.com> - 1.2.95-3
- Removed calls to pynotify.Notification.attach_to_status_icon()
(bug #657722).
* Fri Nov 26 2010 Jiri Popelka <jpopelka@redhat.com> 1.2.95-2 * Fri Nov 26 2010 Jiri Popelka <jpopelka@redhat.com> 1.2.95-2
- Added %%ghost to /var/run/udev-configure-printer/usb-uris (bug #656698). - Added %%ghost to /var/run/udev-configure-printer/usb-uris (bug #656698).