- Fixed bz#237916: [chewing] Candidate list (symbol) page change inaccracy.

epel9
cchance 18 years ago
parent d95a636683
commit 1ea3e197a6

@ -0,0 +1,20 @@
--- libchewing-0.3.0/src/chewingutil.c.orig 2007-05-30 18:06:40.000000000 +1000
+++ libchewing-0.3.0/src/chewingutil.c 2007-05-30 18:07:20.000000000 +1000
@@ -133,7 +133,7 @@ int HaninSymbolInput(
pai->avail[ 0 ].id = -1;
pai->nAvail = 1;
pai->currentAvail = 0;
- pci->nChoicePerPage = (selectAreaLen - 5) / ( 2 + 3) ;
+ pci->nChoicePerPage = selectAreaLen ;
if ( pci->nChoicePerPage > MAX_SELKEY ) {
pci->nChoicePerPage = MAX_SELKEY;
}
@@ -982,7 +982,7 @@ int OpenSymbolChoice( ChewingData *pgdat
pci->nTotalChoice++;
}
- pci->nChoicePerPage = (pgdata->config.selectAreaLen - 5) / ( 2 + 3) ;
+ pci->nChoicePerPage = pgdata->config.selectAreaLen ;
if ( pci->nChoicePerPage > MAX_SELKEY )
pci->nChoicePerPage = MAX_SELKEY ;
pci->nPage = CEIL_DIV( pci->nTotalChoice, pci->nChoicePerPage );

@ -1,7 +1,7 @@
Name: libchewing
Version: 0.3.0
Release: 7%{?dist}
Summary: Intelligent phonetic input method library for Traditional Chinese
Release: 8%{?dist}
Summary: Intelligent phonetic input method library for Traditional Chinese
Group: System Environment/Libraries
License: GPL
@ -13,6 +13,7 @@ Patch2: libchewing-0.3.0-5.bz216581a.patch
Patch3: libchewing-0.3.0-5.bz216581b.patch
Patch4: libchewing-0.3.0-6.bz231568.patch
Patch5: libchewing-0.3.0-7.bz237233.patch
Patch6: libchewing-0.3.0-8.bz237916.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -24,10 +25,10 @@ input methods. The Chewing input method is a smart bopomofo phonetics
input method that is useful for inputting Mandarin Chinese.
%package -n %{name}-devel
%package -n %{name}-devel
Summary: Development files for libchewing
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}, pkgconfig
Requires: %{name} = %{version}-%{release}, pkgconfig
%description -n %{name}-devel
Headers and other files needed to develop applications using the %name library.
@ -40,6 +41,7 @@ Headers and other files needed to develop applications using the %name library.
%patch3 -p1 -b .4-bz216581b
%patch4 -p1 -b .5-bz231568
%patch5 -p1 -b .6-bz237233
%patch6 -p1 -b .7-bz237916
%build
%configure --disable-static
@ -73,6 +75,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.so
%changelog
* Fri Jun 01 2007 Caius Chance <cchance@redhat.com> - 0.3.0-8.devel
- Fixed bz#237916: [chewing] Candidate list (symbol) page change inaccracy.
* Fri Apr 20 2007 Caius Chance <cchance@redhat.com> - 0.3.0-7.fc7
- Fixed bz#237233: Up arrow on candidate list doesn't work.

Loading…
Cancel
Save