Fixed Bug 661943 - the latest page_size for ibus.LookupTable.

This commit is contained in:
Takao Fujiwara 2010-12-10 12:09:31 +09:00
parent 30b4702df5
commit 581de086e3
2 changed files with 32 additions and 3 deletions

View File

@ -1 +1,26 @@
From 6dd2852a36654a4ba1a7c142431a713f10de60a9 Mon Sep 17 00:00:00 2001
From: fujiwarat <takao.fujiwara1@gmail.com>
Date: Fri, 10 Dec 2010 12:02:39 +0900
Subject: [PATCH] Fixed the latest page_size for ibus.LookupTable.
---
engine/engine.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/engine/engine.py b/engine/engine.py
index c2bc8f0..2facf77 100644
--- a/engine/engine.py
+++ b/engine/engine.py
@@ -168,6 +168,9 @@ class Engine(ibus.EngineBase):
self.__segments = list()
self.__lookup_table.clean()
self.__lookup_table_visible = False
+ size = self.__prefs.get_value('common', 'page_size')
+ if size != self.__lookup_table.get_page_size():
+ self.__lookup_table.set_page_size(size)
self._MM = 0
self._SS = 0
self._H = 0
--
1.7.3.2

View File

@ -3,13 +3,13 @@
%define require_pygtk2_version 2.15.2 %define require_pygtk2_version 2.15.2
Name: ibus-anthy Name: ibus-anthy
Version: 1.2.5 Version: 1.2.5
Release: 1%{?dist} Release: 2%{?dist}
Summary: The Anthy engine for IBus input platform Summary: The Anthy engine for IBus input platform
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://code.google.com/p/ibus/ URL: http://code.google.com/p/ibus/
Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
# Patch0: ibus-anthy-HEAD.patch Patch0: ibus-anthy-HEAD.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -32,7 +32,7 @@ libanthy.
%prep %prep
%setup -q %setup -q
# %patch0 -p1 %patch0 -p1
%build %build
%configure --disable-static %configure --disable-static
@ -60,6 +60,10 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/ibus/component/* %{_datadir}/ibus/component/*
%changelog %changelog
* Fri Dec 10 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.5-2
- Added ibus-anthy-HEAD.patch
Fixed Bug 661943 - the latest page_size for ibus.LookupTable.
* Wed Dec 01 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.5-1 * Wed Dec 01 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.5-1
- Updated to 1.2.5 - Updated to 1.2.5
Fixed Bug 652881 - SEGV when key tables are customized in new gconf. Fixed Bug 652881 - SEGV when key tables are customized in new gconf.