rpms/python-pmw/F-11 python-pmw-PmwMenuBar.py.patch, NONE, 1.1 python-pmw.spec, 1.3, 1.4
Timothy Fenn
timfenn at fedoraproject.org
Wed May 13 23:00:46 UTC 2009
- Previous message: rpms/thunderbird/F-11 sources, 1.30, 1.31 thunderbird.spec, 1.135, 1.136 thunderbird-imap-startup-crash.patch, 1.1, NONE thunderbird-pango.patch, 1.1, NONE xulrunner-elif.patch, 1.1, NONE
- Next message: rpms/anaconda/devel .cvsignore, 1.640, 1.641 anaconda.spec, 1.789, 1.790 sources, 1.774, 1.775
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: timfenn
Update of /cvs/pkgs/rpms/python-pmw/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18232
Modified Files:
python-pmw.spec
Added Files:
python-pmw-PmwMenuBar.py.patch
Log Message:
* Wed May 13 2009 Tim Fenn <fenn at stanford.edu> - 1.3.2-8
- patch for unicode menus (Mamoru Tasaka), bug ID 500459
python-pmw-PmwMenuBar.py.patch:
--- NEW FILE python-pmw-PmwMenuBar.py.patch ---
--- Pmw.1.3.2/src/Pmw/Pmw_1_3/lib/PmwMenuBar.py.debug 2007-08-08 04:55:54.000000000 +0900
+++ Pmw.1.3.2/src/Pmw/Pmw_1_3/lib/PmwMenuBar.py 2009-05-13 18:59:22.000000000 +0900
@@ -187,7 +187,9 @@
menubutton = self.component(menuName + '-button')
underline = string.atoi(str(menubutton.cget('underline')))
if underline != -1:
- label = str(menubutton.cget(textKey))
+ label = menubutton.cget(textKey)
+ if type(label) != types.UnicodeType:
+ label = str(label)
if underline < len(label):
hotkey = string.lower(label[underline])
if hotkey not in hotkeyList:
@@ -201,7 +203,9 @@
underline = string.atoi(
str(menu.entrycget(item, 'underline')))
if underline != -1:
- label = str(menu.entrycget(item, textKey))
+ label = menu.entrycget(item, textKey)
+ if type(label) != types.UnicodeType:
+ label = str(label)
if underline < len(label):
hotkey = string.lower(label[underline])
if hotkey not in hotkeyList:
Index: python-pmw.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-pmw/F-11/python-pmw.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- python-pmw.spec 26 Feb 2009 22:56:30 -0000 1.3
+++ python-pmw.spec 13 May 2009 23:00:15 -0000 1.4
@@ -3,11 +3,12 @@
Summary: Python powerwidgets
Name: python-pmw
Version: 1.3.2
-Release: 7%{?dist}
+Release: 8%{?dist}
License: MIT and GPLv2+
Group: Development/Libraries
URL: http://pmw.sourceforge.net/
Source: http://downloads.sourceforge.net/pmw/Pmw.%{version}.tar.gz
+Patch0: python-pmw-PmwMenuBar.py.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-setuptools-devel
Requires: tkinter
@@ -22,6 +23,7 @@ widgets, paned widgets, scrolled widgets
%prep
%setup -q -n Pmw.%{version}
+%patch0 -p1
%build
cd src
@@ -47,6 +49,9 @@ rm -rf %{buildroot}
%{python_sitelib}/Pmw
%changelog
+* Wed May 13 2009 Tim Fenn <fenn at stanford.edu> - 1.3.2-8
+- patch for unicode menus (Mamoru Tasaka), bug ID 500459
+
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.3.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
- Previous message: rpms/thunderbird/F-11 sources, 1.30, 1.31 thunderbird.spec, 1.135, 1.136 thunderbird-imap-startup-crash.patch, 1.1, NONE thunderbird-pango.patch, 1.1, NONE xulrunner-elif.patch, 1.1, NONE
- Next message: rpms/anaconda/devel .cvsignore, 1.640, 1.641 anaconda.spec, 1.789, 1.790 sources, 1.774, 1.775
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list