[ibus-indic-table] Fixed bug-759356-759354.patch

anish anishpatil at fedoraproject.org
Wed Dec 7 15:43:59 UTC 2011


commit 1e6d9f6cfe8ebec42ceeb686871c3a9913d179e1
Author: anish <anish.developer at gmail.com>
Date:   Wed Dec 7 21:15:30 2011 +0530

    Fixed bug-759356-759354.patch

 bug-759356-759354.patch |   56 +++++++++++++++++++++++++++++++++++++++++++++++
 ibus-indic-table.spec   |   11 ++++++--
 2 files changed, 64 insertions(+), 3 deletions(-)
---
diff --git a/bug-759356-759354.patch b/bug-759356-759354.patch
new file mode 100644
index 0000000..375139b
--- /dev/null
+++ b/bug-759356-759354.patch
@@ -0,0 +1,56 @@
+Only in ibus-indic-table-1.3.1/engine: factory.pyc
+diff -rup ibus-indic-table-old/engine/indic_table.py ibus-indic-table-1.3.1/engine/indic_table.py
+--- ibus-indic-table-old/engine/indic_table.py	2011-12-07 21:09:15.644574445 +0530
++++ ibus-indic-table-1.3.1/engine/indic_table.py	2011-12-07 21:06:29.279570649 +0530
+@@ -104,6 +104,8 @@ class editor(object):
+         try:
+             if self.db.get_ime_property('inscript'):
+                 self._is_inscript = True
++                self.is_down_press = False
++                self._first = 0
+                 keyvals = self.db.get_all_values()
+                 for keyval in keyvals:
+                     self._ins_keys[keyval[0]] = keyval[1]
+@@ -116,13 +118,6 @@ class editor(object):
+                 self._indic_nums[keyval[0]] = keyval[1]
+         except:
+             self._indic_nums = {}
+-        # self._chinese_mode: the candidate filter mode,
+-        #   0 is simplify Chinese
+-        #   1 is traditional Chinese
+-        #   2 is Big charset mode, but simplify Chinese first
+-        #   3 is Big charset mode, but traditional Chinese first
+-        #   4 is Big charset mode.
+-        # we use LC_CTYPE or LANG to determine which one to use
+         self._chinese_mode = self._config.get_value (
+                 self._config_section,
+                 "ChineseMode",
+@@ -725,6 +720,12 @@ class editor(object):
+     def arrow_down(self):
+         '''Process Arrow Down Key Event
+         Move Lookup Table cursor down'''
++        if self._is_inscript:
++            self._first = self._first + 1
++            self._lookup_table.show_cursor(True)
++            self.is_down_press = True
++            if self._first == 1:
++                return True
+         res = self._lookup_table.cursor_down()
+         self.update_candidates ()
+         if not res and self._candidates[0]:
+@@ -1303,7 +1304,10 @@ class tabengine (ibus.EngineBase):
+         if self._editor.is_empty ():
+             self.hide_lookup_table()
+             return
+-        self.update_lookup_table ( self._editor.get_lookup_table(), True, True )    
++        if self._editor._is_inscript:
++            self.update_lookup_table ( self._editor.get_lookup_table(), True, False )    
++        else:
++            self.update_lookup_table ( self._editor.get_lookup_table(), True, True )    
+ 
+     def _update_ui (self):
+         '''Update User Interface'''
+Only in ibus-indic-table-1.3.1/engine: indic_table.py~
+Only in ibus-indic-table-1.3.1/engine: indic_table.pyc
+Only in ibus-indic-table-1.3.1/engine: tabdict.pyc
+Only in ibus-indic-table-1.3.1/engine: tabsqlitedb.pyc
diff --git a/ibus-indic-table.spec b/ibus-indic-table.spec
index d5d19e2..c2b7b28 100644
--- a/ibus-indic-table.spec
+++ b/ibus-indic-table.spec
@@ -1,6 +1,6 @@
 Name:       ibus-indic-table
 Version:    1.3.1
-Release:    17%{?dist}
+Release:    18%{?dist}
 Summary:    The Table engine for IBus platform
 License:    LGPLv2+
 Group:      System Environment/Libraries
@@ -21,6 +21,7 @@ Patch11:    bug-743502.patch
 Patch12:    bug-750735.patch
 Patch13:    bug-750730.patch
 Patch14:    bug-750727.patch
+Patch15:    bug-759356-759354.patch
 Requires:       ibus
 BuildRequires:  ibus-devel
 BuildArch:  noarch
@@ -45,6 +46,7 @@ The Indic Table engine for IBus platform.
 %patch12 -p1
 %patch13 -p1
 %patch14 -p1
+%patch15 -p1
 
 %build
 %configure --disable-static --disable-additional
@@ -65,11 +67,14 @@ make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true install pkgconfigdir=%{_datadir}/pk
 %{_datadir}/pkgconfig/%{name}.pc
 
 %changelog
+* Wed Dec 07 2011 Anish Patil <apatil at redhat.com> - 1.3.1-18
+- Fixed bug-759356-759354.patch
+
 * Mon Dec 05 2011 Anish Patil <apatil at redhat.com> - 1.3.1-17
-- Fixed th bug-750727.patch
+- Fixed the bug-750727.patch
 
 * Mon Nov 21 2011 Anish Patil <apatil at redhat.com> - 1.3.1-16
-- Fixed th bug-750730.patch
+- Fixed the bug-750730.patch
 
 * Thu Nov 10 2011 Anish Patil <apatil at redhat.com> - 1.3.1-15
 - Fixed the #bug-750735.patch


More information about the scm-commits mailing list