Author: chkr
Update of /cvs/pkgs/rpms/anki/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15279
Modified Files:
anki.spec
Added Files:
0001-Fix-crash-with-enabled-sys-tray-icon.patch
Log Message:
* Sun Feb 28 2010 Christian Krause <chkr(a)fedoraproject.org> - 0.9.9.8.6-2
- Add a patch to fix a crash when sys tray icon is enabled (BZ 567672)
0001-Fix-crash-with-enabled-sys-tray-icon.patch:
tray.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- NEW FILE 0001-Fix-crash-with-enabled-sys-tray-icon.patch ---
diff --git a/ankiqt/ui/tray.py b/ankiqt/ui/tray.py
index 615738c..b63ef77 100644
--- a/ankiqt/ui/tray.py
+++ b/ankiqt/ui/tray.py
@@ -29,7 +29,7 @@ class AnkiTrayIcon(QtCore.QObject):
mw.addView(self)
mw.connect(self.ti,
QtCore.SIGNAL("activated(QSystemTrayIcon::ActivationReason)"),lambda i:
self.activated(i))
mw.connect(self.ti, QtCore.SIGNAL("messageClicked()"), lambda :
self.messageClicked())
- mw.connect(self.mw.app,
QtCore.SIGNAL("focusChanged(QWidget*,QWidget*)"), lambda old,now:
self.focusChanged(old,now))
+ mw.connect(self.mw.app,
QtCore.SIGNAL("focusChanged(QWidget*,QWidget*)"), self.focusChanged)
self.ti.show()
def showAll(self):
--
1.6.2.5
Index: anki.spec
===================================================================
RCS file: /cvs/pkgs/rpms/anki/F-11/anki.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -p -r1.11 -r1.12
--- anki.spec 21 Feb 2010 23:54:12 -0000 1.11
+++ anki.spec 28 Feb 2010 18:36:57 -0000 1.12
@@ -2,7 +2,7 @@
Name: anki
Version: 0.9.9.8.6
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Flashcard program for using space repetition learning
Group: Amusements/Games
@@ -21,6 +21,8 @@ Source1: generate-anki-tarball.sh
# Config change: don't check for new updates.
Patch0: anki-0.9.9.8.6-noupdate.patch
+#
https://bugzilla.redhat.com/show_bug.cgi?id=567672
+Patch1: 0001-Fix-crash-with-enabled-sys-tray-icon.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel, python-setuptools, python-sqlalchemy
BuildRequires: desktop-file-utils, PyQt4
@@ -38,6 +40,7 @@ as possible. Anki is based on a theory c
%prep
%setup -q
%patch0 -p1 -b .noupdate
+%patch1 -p1 -b .trayicon_crash
%build
pushd libanki
@@ -104,6 +107,9 @@ rm -rf %{buildroot}
%{_datadir}/pixmaps/%{name}.png
%changelog
+* Sun Feb 28 2010 Christian Krause <chkr(a)fedoraproject.org> - 0.9.9.8.6-2
+- Add a patch to fix a crash when sys tray icon is enabled (BZ 567672)
+
* Mon Feb 22 2010 Christian Krause <chkr(a)fedoraproject.org> - 0.9.9.8.6-1
- Update to new upstream version
- Remove example files from upstream tarball due to unknown license